I am trying to write a function where I can pass a field name parameter to a recordset to update the rs...
I can't quite remember how to do this but now it is possible
I have the a parameter strCTL which is of string type and stores the name of the field in the rs....
set rs as currentdb.openrecordset(strSQL)
rs.addnew
rs!(strCTL) = some new data
rs.update
but I know that rs!(strCTL) is the wrong syntax!!! could someone pls help me urgently with the correct syntax please
help appreciated
neemi
I can't quite remember how to do this but now it is possible
I have the a parameter strCTL which is of string type and stores the name of the field in the rs....
set rs as currentdb.openrecordset(strSQL)
rs.addnew
rs!(strCTL) = some new data
rs.update
but I know that rs!(strCTL) is the wrong syntax!!! could someone pls help me urgently with the correct syntax please
help appreciated
neemi