I am not getting an import error table. It names the columns appropriately,
but doesn't bring in the first row of data. If there is only one row, then
the table is empty.
I will try reworking the code to delete the rows.
Thanks for the suggestions.
Personally, I wish Microsoft would allow us to define ImportSpecifications
for Excel files, like they do for csv, text, ... Unfortunately, they have
decided that they can figiure out what our Excel data is supposed to look
like better than we can.
Have you tried linking to the spreadsheet rather than importing? This will
prevent bloating of your database, and the need to compact occassionally.
I've found that if the import wizard decides that a field is of one
datatype, and the actual data in that row for one of the records doesn't
match the datatype, that Access will drop rows, but as Jerry mentioned, this
usually results in an ???_ImportErrors table. This is another reason for
creating a table, defining its structure to match what the import datashould
be (make sure to allow Null values if you have some fields that contain
Nulls), and then import the data into that table, rather than creating the
table during the import.
HTH
Dale

Signature
Don''t forget to rate the post if it was helpful!
email address is invalid
Please reply to newsgroup only.
> I am not getting an import error table. It names the columns appropriately,
> but doesn't bring in the first row of data. If there is only one row, then
[quoted text clipped - 26 lines]
> > >
> > > Thanks,
DanL - 17 Jan 2008 01:54 GMT
Thank you all for your responses. Although you have been very helpful, the
problem persists.
I am at the mercy of the file I am downloading (from a large retailer) and
am restrained to accepting the excel file as it comes in. I have found the
problem by looking at the raw data in notepad and comparing it to a csv
conversion file (the csv file loads fine every time).
Intermittantly in the download, the crlf after the header row is missing.
When the excel file is saved as a csv, the crlf is inserted. When the crlf is
missing, the first row of data (after the header) is loaded as a
continuation of the header row and is omitted from the import.
I am currently working on a way to detect the missing crlf and solve this
problem before importing. Any suggestions would be appreciated.
Of course, I could convert the downloadd excel file to csv before importing
each day (...but that's no fun).

Signature
DanL
> Personally, I wish Microsoft would allow us to define ImportSpecifications
> for Excel files, like they do for csv, text, ... Unfortunately, they have
[quoted text clipped - 46 lines]
> > > >
> > > > Thanks,