I have never coded in Access' VBA (just Excel). Is it possible to create a macro that will run all of the queries I have set up? If so, how?
Some query names are: 01_PIF Counts, 01_V12 Disc & 01_V12 Unique Pol
I do not use macros, but if using VBA there are 3 methods depending on if you just want to open a query or run an action query.
currentdb.execute
docmd.runsql
docmd.openquery
You will get much better advice in the many MS Access forums like forum705.
Check out the DoCmd.RunQuery "01_PIF Counts".
I believe that's the correct syntax. I do very little Access VB coding.
However, I often run queries using Access databases, (Oracle, DB2, Excel, Text) as the db source, right in Excel, using Data > Import External Data > New Database Query, and have the resultset returnd to a worksheet.
Skip, Just traded in my old subtlety... for a NUANCE!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.