Is it possible that some fields have both text & numbers? If, for example, a
column (field) was a text field on the AS400 but just happened to have
numbers in that column except for the last row, like this:
12345987
456189
2131896
2ABC
then Access may interpret the field as numeric and reject the last item
because it is not numeric.
You can, by the way, automate the named range from Access. I would just
create a blank Excel sheet. Record a macro that opens the one with the data
and does the formatting/naming you need, then saves it and finally closes
itself. Make this an Auto_Open macro. Then, all you have to do from within
Access is shell out to Excel, passing the name of your blank Excel sheet as a
parameter, and it will do the external work for you automatically.
If you do this, make sure to put this action and the import on separate
buttons, or Excel will still be busy formatting the other sheet when Access
attempt to import it (Access will not wait for Excel to finish its work
before it goes to the next line of code, TransferSpreadsheet or whatever).
> Using Access 2002, I am importing data from Excel (which is a file created
> from AS400) and have used various methods, i.e. linking to the excel file,
[quoted text clipped - 13 lines]
>
> Thank you for your time and attention.
Emma - 10 Aug 2005 17:41 GMT
Yes, there is a field (a product code field) that could do that however, it
always omits the last row even when it is all numeric. Wierd.
I'm gonna try your suggestion on automating range naming from access.
> Is it possible that some fields have both text & numbers? If, for example, a
> column (field) was a text field on the AS400 but just happened to have
[quoted text clipped - 37 lines]
> >
> > Thank you for your time and attention.