G
Guest
I am in the process of importing excel into Access and I keep getting this
message that states subscript is out of range.
message that states subscript is out of range.
Ken Snell (MVP) said:This message is a "generic" one that indicates that the argument being
supplied to a subroutine or function is "out of the range" that the function
or subroutine expects or that it can find (e.g., suppose you have one form
open, and your programming tells ACCESS to open the second form in the
collection -- because there is no second form, you'd get this error
message).
You don't say how you're importing the file -- are you using File | Get
External Data | Import menu? Or are you using a macro (TransferSpreadsheet
action)? or VBA code (DoCmd.TransferSpreadsheet method)?
Andri said:i do experience for "subscript out of range", when importing Excel to Access.
in my case, i did the followings:
1. the Field name should be the same as in both Excel and Access.
2. for the ID (Autonumber in Access) should be filled manual in Excel also.
3. Cell format both in Access and Excel should be the same.
HTH.