Chesterex1
Vendor
I have code as follows
Dim strField as string, dbT as Database, rsT as RecordSet
strField = "something"
Set dbT = CurrentDb
Set rsT = dbT.OpenRecordset("table"
if rsT!strField = "na" then ....
I WANT to use a variable to reference the field name in a recordset - Is this possible? As I have a table with over 235 fields and they are named sequentially - I want to perform the same function over and over on the same fields.
Thanks
Tim
Dim strField as string, dbT as Database, rsT as RecordSet
strField = "something"
Set dbT = CurrentDb
Set rsT = dbT.OpenRecordset("table"
if rsT!strField = "na" then ....
I WANT to use a variable to reference the field name in a recordset - Is this possible? As I have a table with over 235 fields and they are named sequentially - I want to perform the same function over and over on the same fields.
Thanks
Tim