Hi
Here is the code i am using below to export a query to excel.
Is there anyway the file can be called the [JOBID] field when it is eported as opposed to them all being called supplier quote.
Private Sub Command100_Click()
Dataexport = "C:\Exports\Supplier Quote.xls" 'this name the path of the excel file you need to write to
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, "supplierexport", Dataexport, True
End Sub
Any help appreciated.
Thanks
Scott
Diamond Specialists
Here is the code i am using below to export a query to excel.
Is there anyway the file can be called the [JOBID] field when it is eported as opposed to them all being called supplier quote.
Private Sub Command100_Click()
Dataexport = "C:\Exports\Supplier Quote.xls" 'this name the path of the excel file you need to write to
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, "supplierexport", Dataexport, True
End Sub
Any help appreciated.
Thanks
Scott
Diamond Specialists