Let's try a simpler path for the file first. Try this and see if it
works:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"ClaimFormReport","C:\ClaimFormReport.xls"
By the way, the other code lines that you posted do not do anything in
this code snippet -- you don't use the variables anywhere else in the
code snippet.
--
Ken Snell
<MS ACCESS MVP>
http://www.accessmvp.com/KDSnell/
Hi Ken thanks for reply, could you have a look at the following and
tell me where I am going wrong please, it comes up with an error check
the file name or path
but both are correct or is it the code is all wrong anyway.
Thanks
Bob
Dim stDocName As String
Dim strWhere As String
strWhere = "[Date] between #" & Format(Me.txtStartDate,
"dd-mmm-yy") & "# AND #" & Format(Me.txtEndDate, "dd-mmm-yy") & "#"
stDocName = "ClaimFormReport"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"ClaimFormReport","C:\Documents and Settings\Bob\My
Documents\ClaimFormReport.xls", True
Do not use File | Export menu to do the transfer. It uses EXCEL 95
format for outputting, which is limited to text strings no longer than
255 characters.
Use TransferSpreadsheet action (macro or VBA code) to do the export.
It will not truncate memo fields.
--
Ken Snell
<MS ACCESS MVP>
http://www.accessmvp.com/KDSnell/
Hi this question must have been asked many times, so I apologise now
for asking it again. But I cannot find the answer.
When I export a report to Excel from Access 2003 to Excel 2003 the
memo field only transfers the first 225 digits
how do I get round this problem.
Thanks
Bob