G
Guest
I am using the below code to export a parameter query to a excel spreadsheet.
The problem is the parameter box opens and displays the query result. Then
the export file save opens and then the parameter box open again and if I do
not enter the code again it will not export the data. Why is the parameter
opening twice and how can I have the file “Save as Type†default to Excel
97-2002.
Thanks
CODE:
DoCmd.OpenQuery "z- qmtblTeoco Control"
DoCmd.RunCommand acCmdExport
The problem is the parameter box opens and displays the query result. Then
the export file save opens and then the parameter box open again and if I do
not enter the code again it will not export the data. Why is the parameter
opening twice and how can I have the file “Save as Type†default to Excel
97-2002.
Thanks
CODE:
DoCmd.OpenQuery "z- qmtblTeoco Control"
DoCmd.RunCommand acCmdExport