border20
Registered User.
- Local time
- Today, 20:24
- Joined
- Jan 8, 2003
- Messages
- 92
I have the folowing code that works fine
Docmd.TransferSpreadsheet acExport, 8, "Queryname", "x:\database\export.xls", False
the problem is that X is a network drive, and the database is runed form different computer with different drive names...
The target excel document is in the same folder as th DB... so I need to refer to the reletive path... so i tried this :
Docmd.TransferSpreadsheet acExport, 8, "Queryname", "export.xls", False
and
Docmd.TransferSpreadsheet acExport, 8, "Queryname", "\export.xls", False
but none worked
can anyone help ?
Docmd.TransferSpreadsheet acExport, 8, "Queryname", "x:\database\export.xls", False
the problem is that X is a network drive, and the database is runed form different computer with different drive names...
The target excel document is in the same folder as th DB... so I need to refer to the reletive path... so i tried this :
Docmd.TransferSpreadsheet acExport, 8, "Queryname", "export.xls", False
and
Docmd.TransferSpreadsheet acExport, 8, "Queryname", "\export.xls", False
but none worked
can anyone help ?