G
Geoff P
Guest
Hello,
This is probably a dumb question but here it goes:
What I am trying to do is take a truck number which is the value in a field in one table, and use the number to refer to the name of a field in another table. Here is the code I am using:
ControlName = [rec3]![truck #]
rec4.Edit
rec4!([ControlName].Value) = rec3![license name]
rec4.Update
rec4.MoveFirst
using rec4!([ControlName].Value) to refer to the value that has been assigned to control name does not work.
Does anybody know how I can use the value of a variable on one table to refer to a field name on another table?
Any help would be greatly appreciated.
Thanks
Geoff
[This message has been edited by Geoff P (edited 03-15-2001).]
This is probably a dumb question but here it goes:
What I am trying to do is take a truck number which is the value in a field in one table, and use the number to refer to the name of a field in another table. Here is the code I am using:
ControlName = [rec3]![truck #]
rec4.Edit
rec4!([ControlName].Value) = rec3![license name]
rec4.Update
rec4.MoveFirst
using rec4!([ControlName].Value) to refer to the value that has been assigned to control name does not work.
Does anybody know how I can use the value of a variable on one table to refer to a field name on another table?
Any help would be greatly appreciated.
Thanks
Geoff
[This message has been edited by Geoff P (edited 03-15-2001).]