mud2
12-14-2006, 03:35 PM
How do I get the contents of a field in a table? I pass the table name, and several field names as variables...Arg1, arg2.....
I open a DBO db, set a record set, and
If ![field1] = arg2...do something...works
But none of the following work;
If arg1 = arg2 doesn't,
If !arg1 ....nor
If ![arg1]....nor
If 'Arg1'..... nor
If "arg1"...., nor
If !'arg1'... nor
If !(arg1)....ad naseum!
So Argx on the right works, but argx (or y) on the left doesn't!
If this were C or C++ I'd use *argx...but VBA's default IS by reference...
So, How Do I extract and use the contents of a variable field in a table?
I open a DBO db, set a record set, and
If ![field1] = arg2...do something...works
But none of the following work;
If arg1 = arg2 doesn't,
If !arg1 ....nor
If ![arg1]....nor
If 'Arg1'..... nor
If "arg1"...., nor
If !'arg1'... nor
If !(arg1)....ad naseum!
So Argx on the right works, but argx (or y) on the left doesn't!
If this were C or C++ I'd use *argx...but VBA's default IS by reference...
So, How Do I extract and use the contents of a variable field in a table?