X
xiaodan86
I am having a problem that when i export the data from the form/report
to excel, there are missing data.
My form/report data come from query. And there are some memo fields.
How can I solve this problem?
I saw someone mentioned about the solution below.
But my data comes from query.
How can I overcome this problem?
Thanks.
#######
If you're exporting from a query, then make sure of the following:
Do not use a Group By query
Do not use the DISTINCT or DISTINCTROW modifers
Do not use and functions in any columns
(Left(), Mid(), InStr(), IIF(), etc.)
If you absolutely need these things, then execute your query into
a temp table and export that.
######
or
####
DoCmd.TransferSpreadsheet _
TransferType:=acExport, _
SpreadsheetType:=acSpreadsheetTypeExcel8, _
TableName:="Export - 100 - Past Due Orders", _
filename:=reportfilename, _
HasFieldNames:=True
#####
to excel, there are missing data.
My form/report data come from query. And there are some memo fields.
How can I solve this problem?
I saw someone mentioned about the solution below.
But my data comes from query.
How can I overcome this problem?
Thanks.
#######
If you're exporting from a query, then make sure of the following:
Do not use a Group By query
Do not use the DISTINCT or DISTINCTROW modifers
Do not use and functions in any columns
(Left(), Mid(), InStr(), IIF(), etc.)
If you absolutely need these things, then execute your query into
a temp table and export that.
######
or
####
DoCmd.TransferSpreadsheet _
TransferType:=acExport, _
SpreadsheetType:=acSpreadsheetTypeExcel8, _
TableName:="Export - 100 - Past Due Orders", _
filename:=reportfilename, _
HasFieldNames:=True
#####