I'm using the following VBA code in Access 2007 to reference a user selected field. The field that the user selects is placed in the string variable: ThisField. Both the field and it's associated table have been determined to exist. I get the error message: "Item not found in the collection."
Does anyone see a problem in my code? Thanks for any help,
Paul Hudgens
Denver
Code:
If IsNumeric(ThisRSet!ThisField) Then GasVol = ThisRSet!ThisField
Does anyone see a problem in my code? Thanks for any help,
Paul Hudgens
Denver