Access 2000. subscript out of range

J

JMorin

When trying to create a command button (Duplicate record and copy to the
next) I get error message "Subscript out of range"
 
A

Arvin Meyer

That error occurs when there are more elements in an array than the
boundries allow for. In your case, I suspect that the record you are trying
to copy has an autonumber field which can't be pasted. So when you paste,
you get the table's autonumber plus the one you have copied. This adds up to
more than the number of fields. I suggest you build a recordset and only
write the data you can.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access Downloads
http://www.datastrat.com
http://www.mvps.org/access
 
Top