Hi All
I am looking to transfer a query from access to Excel file using VB code. I have the following code
Dim FileName
FileName = [Forms]![aform1]![User]
DoCmd.TransferSpreadsheet acExport, , _
"CustomerDetails", _
FileName, True
but i need to add location information to this, can anyone tell me how to specify the folder to save the file in??
thanks
Ali
I am looking to transfer a query from access to Excel file using VB code. I have the following code
Dim FileName
FileName = [Forms]![aform1]![User]
DoCmd.TransferSpreadsheet acExport, , _
"CustomerDetails", _
FileName, True
but i need to add location information to this, can anyone tell me how to specify the folder to save the file in??
thanks
Ali