troubleshooting Question

Export Access Query to an Excel Tab

Avatar of marku24
marku24Flag for United States of America asked on
Microsoft AccessVBAMicrosoft ExcelMicrosoft Office
4 Comments1 Solution32 ViewsLast Modified:
Hello all - I would like to run a VBA script that transfers (appends) an Access Query to a designated tab in Excel.  Here is the trick i am having a problem with....  The Access query contains a date field called "dateloaded".  If this date already exists in the Excel tab i would like to overwrite the excel data, if it does not exist i would like it to append the data to the tab.  Here are some of my parameters:

AccessQuery#1:  “sqryHires”   to write (append) to Excel tab “Hires”
AccessQuery#2:  “sqryTerms” to write (append) to Excel tab “Terms”
AccessQuery#3:  “sqryTransfers” to write (append) to Excel tab “Transfers”
In the access queries is a single date field:  “DateLoaded”

Is that doable using VBA?
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros