In Access 2000, I want to refer a recordset dynamically
for example:
Set rst = dbs.OpenRecordset(TableName)
AAA = field name - field name is set elsewhere and this is the dynamic piece of code
With rst
intDataValue = rst!AAA
I get an error "item not found in this collection.
What is the correct syntax?
for example:
Set rst = dbs.OpenRecordset(TableName)
AAA = field name - field name is set elsewhere and this is the dynamic piece of code
With rst
intDataValue = rst!AAA
I get an error "item not found in this collection.
What is the correct syntax?