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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transfer Spreadsheet vs. File Export in Access 1

Status
Not open for further replies.

netrusher

Technical User
Joined
Feb 13, 2005
Messages
952
Location
US
Below is the code I am using to send a query to Excel. The problem is if a cell is over 255 characters it is truncated. If I go FILE then Export the query it does not truncate the cells in Excel. How can I turn the
File Export to a command button or VBA to the Cells are not truncated in Excel?
Code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qryECNPlannedByMonthPIDNew", "c:\my documents\ECNSPIP.xls", True, ""
 
Remou,

Thanks for the advice. I have tried output to through a
macro and it truncates the celss in Excell to 255
characters. The only way I have been able to find that will
not truncate the memo fields from access in excel is to go
File Export. I want to automate this and do not know how. I
do not know anything about the Jet drivers. This is a huge
corporation so I am assuming everything is up to date. What
do I check for?
 
I included a link to Microsoft that gives details of what to check for. If it is a huge corporation, it is quite likely that the Jet engine has been overlooked.

 
We have version
MSJET40.dll 4.0.9511.0
 
My query displays the data correctly. It only truncates
when I DoCmd Transfer Spreadsheet or OutputTo. If I Export
it does not truncate. Any other suggestions?
 
You have stated that you have tried this with a query, have you tried transferspreadsheet with the table the query is based on?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top