Query output to MSExcel (1 Viewer)

G

ghinds

Guest
I am using DoCmd.TransferSpreadsheet 1, 8, "Query1", "D:\Test\101.xls", True
Query1 needs to be run 55 times with different parameters.
How do I pass these parameters in the VBA? Each query result is saved as a different MS Excel file which I am happy to hardcode the filename for.
Thanks
 

MikeAngelastro

Registered User.
Local time
Yesterday, 17:11
Joined
Mar 3, 2000
Messages
254
What does the first line have to do with the rest of your question?
 

Fuga

Registered User.
Local time
Today, 01:11
Joined
Feb 28, 2002
Messages
566
Since you are thinking of hardcoding the filenames, I take it the parameters won´t be the same all the time.

Where do the parameters come from? a table? The user?

Fuga.
 

Users who are viewing this thread

Top Bottom