subscript out of range

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.
 
T

Tom van Stiphout

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top