Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating an array with no elements

Status
Not open for further replies.

Waud

Programmer
Oct 9, 2003
18
0
0
GB
This is starting to irritate me so if some could tell me if this should work in Access 2003 I'd appreciate it

I'm sure I've done this in the past by declaring an array like this.

Code:
Dim myArray(-1)

But I can't remember what I was using at the time (VB5, 6 or VBA or something else)


The idea behind doing this is that I can use UBound to find how large the array is and not have to worry about trapping for err 9
 
I thought it was just

Code:
Dim myArray()

without the -1?

< M!ke >
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top