-
WSM.Robb
AskWoody LoungerHi as per my first email, have already tried in quotations… no worries will keep trying. thanks.
-
WSM.Robb
AskWoody LoungerBlitzy,
Could you please post the code for the On-Click Event? :cheers:
HI AS REQUESTED THANKS!
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel8, Tbl_Data_Gaps, [J:Data AnalysisGap.xls], True
-
WSM.Robb
AskWoody LoungerThanks Ruirib, that makes sense.
Will give it a go.
M
-
WSM.Robb
AskWoody LoungerActually, I think you want to create a link in the Access database to the SQL Server table using ODBC, not the other way around. Your original post indicated you do have that. Rather than recreating the table, I would run a delete query and then an append query to move the data in Access to SQL Server. Or you could simply have the SQL Server table the destination for the process that creates the data to begin with.
Thanks Wendell, problem I have is that I am trying to create a wee automatic cleaning and export function on an on_click event, for which everything is working fine except the final export to SQL. Problem is that I cannot seem to find a way in VBA (I’m not a programmer just probably a slightly more “advanced” user than someone just putting queries together) where I can do that – I’ve found a transfer option which seems to relate to the entire database into SQL but not just one table. So if for example I wanted to punt my newly cleaned table directly into SQL Server how would I do it using a Docmd? I don’t want to append to an existing table in SQL server but to put the Access table straight into the database. For example if my Access Table were called Table1, my ODBC connection called ODBC1 and the SQLServerDatabase called SQLServer1? Thanks for your help.
blitzy
-
WSM.Robb
AskWoody LoungerHi, several hundred thousand records so likely to be slow. I did try to set up a link in SQL to the access table but was booted out because of permissions – have had to park this just now, but may have to come back to it! Thanks for input
-
WSM.Robb
AskWoody LoungerThanks, I got it to work! Cheers for help.
-
WSM.Robb
AskWoody LoungerYou want to convert it to a Date to insert in a table or just to perform some calculation?
Hi I am going to search for records between dates.
thanks.
-
WSM.Robb
AskWoody LoungerHi John, thanks so much that’s working beautifully now. Can you also help with a similar issue –
I have a table detailing actions – simply an autonumber and listing possible actions people might wish to do with the db (e.g. open table, open form, run query, run report etc.). I want to attach this table to an unbound combo box on a switchboard form to allow people various options. I’ve got the combo box set up but not sure how I get the various actions to perform once the combo box listing is selected. think I need some sort of if statement on the AFter update box but VBAs not my strong point. Can you give me some pointers. It would be like
If Combo2 value = 1, then open form1
If Combo2 value = 2 then run report1 etc.Thanks for your help!
blitzy
-
WSM.Robb
AskWoody Loungerme.combo9.requery will get it to update. But where do you put it?
You could use the Activate event.Not sure I know what the Activate event is – I was going to put it in the onEnter part of the combo box – would that do the trick??
-
WSM.Robb
AskWoody LoungerHi Reid, yes that seems to be working thanks for your help.
Best.
Blitzy
-
WSM.Robb
AskWoody LoungerHi Ruiri – yes I’ve got the Match y/n filled. Thanks kindly for the help – will give it a try with a backuptable in place.
Blitzy
-
WSM.Robb
AskWoody LoungerHi hans, one of my colleagues has pointed me in the direction of the Access Developer Solutions Database, and I’m finding it helpful…. Think I can probably get what I want from this. Thank you very much for your help in any case.
Regards. Blitz
-
WSM.Robb
AskWoody LoungerHi hans, one of my colleagues has pointed me in the direction of the Access Developer Solutions Database, and I’m finding it helpful…. Think I can probably get what I want from this. Thank you very much for your help in any case.
Regards. Blitz
-
WSM.Robb
AskWoody LoungerThanks folks! I’ll try this lot out.
Regards. Blitz
-
WSM.Robb
AskWoody LoungerThanks folks! I’ll try this lot out.
Regards. Blitz
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Red x next to folder on OneDrive iPadOS
by
dmt_3904
8 minutes ago -
Are manuals extinct?
by
Susan Bradley
31 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
7 hours, 35 minutes ago -
Network Issue
by
Casey H
14 hours, 7 minutes ago -
Fedora Linux is now an official WSL distro
by
Alex5723
19 hours, 34 minutes ago -
May 2025 Office non-Security updates
by
PKCano
20 hours, 1 minute ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
21 hours, 56 minutes ago -
pages print on restart (Win 11 23H2)
by
cyraxote
21 hours, 12 minutes ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
1 day ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
1 day ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
1 day, 7 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
1 hour, 2 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
1 day, 18 hours ago -
How much I spent on the Mac mini
by
Will Fastie
18 hours, 17 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
13 hours, 27 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
2 days ago -
Setting up Windows 11
by
Susan Bradley
19 hours, 47 minutes ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
1 day, 20 hours ago -
Powershell version?
by
CWBillow
1 day, 21 hours ago -
SendTom Toys
by
CWBillow
7 hours, 55 minutes ago -
Add shortcut to taskbar?
by
CWBillow
2 days, 1 hour ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
2 days, 17 hours ago -
How can I install Skype on Windows 7?
by
Help
2 days, 16 hours ago -
Logitech MK850 Keyboard issues
by
Rush2112
1 day, 23 hours ago -
We live in a simulation
by
Alex5723
3 days, 7 hours ago -
Netplwiz not working
by
RetiredGeek
2 days, 18 hours ago -
Windows 11 24H2 is broadly available
by
Alex5723
3 days, 19 hours ago -
Microsoft is killing Authenticator
by
Alex5723
21 hours, 47 minutes ago -
Downloads folder location
by
CWBillow
4 days, 2 hours ago -
Remove a User from Login screen
by
CWBillow
2 days, 22 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.