Access9001
Registered User.
- Local time
- Yesterday, 19:22
- Joined
- Feb 18, 2010
- Messages
- 268
I want to be able to have an array defined in this way:
nameofarray(,2)
where I then iterate through a recordset that I get via a query, and for each new entry, insert a name into the first index, and their email in the second index. For instance:
nameofarray(0,0)="James"
nameofarray(0,1)="james@email.com"
nameofarray(1,0)="Tim"
nameofarray(1,1)="Tim@email.com"
and so on and so forth. I've tried a variety of things with redim preserves and so forth but I always run into index errors and incorrect array syntax.
nameofarray(,2)
where I then iterate through a recordset that I get via a query, and for each new entry, insert a name into the first index, and their email in the second index. For instance:
nameofarray(0,0)="James"
nameofarray(0,1)="james@email.com"
nameofarray(1,0)="Tim"
nameofarray(1,1)="Tim@email.com"
and so on and so forth. I've tried a variety of things with redim preserves and so forth but I always run into index errors and incorrect array syntax.