J
Jody
I'm currently using the DoCmd.TransferSpreadsheet to
export data from access to excel. Here's the code:
DoCmd.TransferSpreadsheet acExport,
acSpreadsheetTypeExcel8, "qryExport", "C:\MachExport.xls",
True
My qryExport is based on an unbound form from which the
user can select the records to export. Can this criteria
be incorporated to change the name of the result .xls file
each time the query is processed? Currently if the user
selects another set of records to export, the previous
file "MachExport.xls" is overwritten. Or, is it possible
to warn the user that the file will be overwritten and
give them an option to change the name?
I'm fairly new to VB so any suggestions would be greatly
appreciated.
export data from access to excel. Here's the code:
DoCmd.TransferSpreadsheet acExport,
acSpreadsheetTypeExcel8, "qryExport", "C:\MachExport.xls",
True
My qryExport is based on an unbound form from which the
user can select the records to export. Can this criteria
be incorporated to change the name of the result .xls file
each time the query is processed? Currently if the user
selects another set of records to export, the previous
file "MachExport.xls" is overwritten. Or, is it possible
to warn the user that the file will be overwritten and
give them an option to change the name?
I'm fairly new to VB so any suggestions would be greatly
appreciated.