Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export using field name as filename???? 1

Status
Not open for further replies.

maca9

Technical User
Apr 3, 2003
34
0
0
NZ
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top