Click to See Complete Forum and Search --> : Transfer Spreadsheet in Access 2000
MAB
Jan 13th, 2005, 03:27 PM
Hi,
I'm using the following DoCmd.TransferSpreadsheet acexport command to take an Access table and create an Excel spreadsheet. I get an error message that says "Too Many Fields Defined". Is there a limit to the number of fields or field sizes?
Thank you.
RobDog888
Jan 13th, 2005, 03:32 PM
Are you specifing a Range? If you do it will fail. Leave it blank for Exporting.
MAB
Jan 13th, 2005, 03:33 PM
I didn't use a range. Left range blank.
RobDog888
Jan 13th, 2005, 03:41 PM
How many fields and are there any special characters in the field names?
Also, do you have a memo field type in the table?
MAB
Jan 13th, 2005, 03:46 PM
There are 24 fields in the table - 7 are memo fields. No special characters in any of the field names. Strange thing is it was working and suddenly it gave us this error message. I removed two memo fields and the process worked. Problem is we need to get this table in its full form over to Excel.
MAB
Jan 13th, 2005, 03:52 PM
I just tried using the DoCmd.OutputTo acTable command. It seems to work. Perhaps there is a limit to DoCmd.TransferSpreadsheet.
RobDog888
Jan 13th, 2005, 03:52 PM
Its got to be either a length issue for an Excel Cell to accept or there could be
some invalid data in one of the records in one or both memo fields.
RobDog888
Jan 13th, 2005, 03:54 PM
I found this link (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbaac11/html/acmthactTransferSpreadsheet.asp), but it doesn't specify that there is a limit.
MAB
Jan 13th, 2005, 04:32 PM
Thank you for the link. It seems even the Do.Cmd Output is truncating the data in some of the fields.
RobDog888
Jan 13th, 2005, 04:56 PM
What is the limit that is making it through for the memo? 255, 1024, etc.
MAB
Jan 13th, 2005, 05:10 PM
Looks like 255. We may just transfer the data as rtf file. I appreciate your time. Thank you.
RobDog888
Jan 13th, 2005, 05:17 PM
No prob. but what if you export it as a textfile and then do a manual import
from Excel? Maybe that way you can get the entire memos. Or maybe Excel
is the one with the limit of 255?
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.