I need to be able to update any 1 of 3 fields in a table by using a function.
I have set the a recordset as below:
Set result=mybb.openrecordset("MYTABLE"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I find the record I need to update using
Result.findfirst Criteria
Then I need to be able to update 1 of 3 fields with following statement
result.edit
Result![VARIABLE]=Updated_data "... It is this field I need to update depending on the parameter passed in the function i.e. field names are Class1, Class2,Class3 "
Result.update
I tried passing the field name as a field in the function declartion
Any Ideas
I have set the a recordset as below:
Set result=mybb.openrecordset("MYTABLE"
I find the record I need to update using
Result.findfirst Criteria
Then I need to be able to update 1 of 3 fields with following statement
result.edit
Result![VARIABLE]=Updated_data "... It is this field I need to update depending on the parameter passed in the function i.e. field names are Class1, Class2,Class3 "
Result.update
I tried passing the field name as a field in the function declartion
Any Ideas