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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble Referencing Microsoft Access 2000 Fields - Part 1

Status
Not open for further replies.

NeilFrank

Programmer
Mar 12, 2000
167
CA

I noted with interest that in Access 2000, it is legal to give several fields the same name by using variable array notation. For example, I can set up a table with 3 fields named Field(1), Field(2), and Field(3).

However, I find that I subsequently can't reference these fields using the normal ! notation.

For example, when I write:

For intCount = 1 To 3
!Field(intCount) = mintArray(intCount)
Next intCount

or even when I try eg:

!Field(1) = mintArray(1)

I get an "Item cannot be found in the collection corresponding to the requested name or ordinal" error.

Help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top