Showing Query Results from VBA SQL Query

P

PiB311

Hello all,

I am running into an issue showing results from a VBA SQL query that I need
to export to Excel. Its nested within a loop sequence, and will run for each
individual in a certain work group.

I have used the following code before and am just looking for they way to do
it a VBA SQL dataset.

DoCmd.OpenQuery "Query1"
DoCmd.RunCommand acCmdSelectAllRecords
DoCmd.RunCommand acCmdCopy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top