subscript out of range

  • Thread starter Thread starter Bandit
  • Start date Start date
B

Bandit

What does this error msg mean. I made several copies of the database I am
working on. Then tried to split one. I have never done this or seen it
done. The msg I got was "subscript out of range". Any ideas? I will need
to split this database soon and am just now experimating with it it.
 
On Tue, 8 Apr 2008 18:01:01 -0700, Bandit

This was probably a runtime error. When that happens, hit Ctrl+Break
to break into the code, and you can probably figure out what happened.

A subscript is also known as an array index.
dim s(5) as string
dim i as integer
for i = 1 to 10
msgbox s(i)
next
This will generate the error when i reaches 6, because s(6) does not
exist.

-Tom.
 
Back
Top