Can anybody tell me why I'm getting this in the following code when the number of fields is greater than about 70?
the error is occuring on the DoCmd.RunSQL SQLText.
It's part of a large import, reformat, export routine, and works perfectly well for excel files with less than about 70 columns.
Is this the mysterious form lifetime controls limit???
Thanks,
Phil
Phil
---------------
Pass me the ether.
Code:
For Each fld In rs.Fields
If fld.name <> "CODE" And fld.name <> "Species Name" Then
SQLText = "ALTER TABLE BugsCountsheet ALTER COLUMN [" & fld.name & "] long;"
DoCmd.RunSQL SQLText
End If
Next fld
It's part of a large import, reformat, export routine, and works perfectly well for excel files with less than about 70 columns.
Is this the mysterious form lifetime controls limit???
Thanks,
Phil
Phil
---------------
Pass me the ether.