I asked something similar for DAO syntax, but now I've got the same question for a Form object variable.
In a form is textbox, tbxNm1, which is bound to Nm1 in the table.
I've called a procedure in another module and have passed the form object via: SomeProcedure(Frm As Form)
Now I want to get the value for Nm1 that is in the form, from the Frm object.
Based on the DAO solution I thought something like this might work:
FldNm = "Nm1"
...
vFld = Frm.Fields(FldNm).Value
but no... (won't compile)
Note, I can't use Frm!Nm1 because I'm actually loop processing a lot of fields (for error checking) by variable.
What's the syntax?
Thanks