Great, so that seems to work for a form, but I'm haivng trouble referring
to
a subform, which is what I really need. I've tried various combinations,
but
cannot seem to get this to work.
Ken Snell said:
You mean
Me.Controls(myVar).Value
Or
Forms("FormName").Controls(myVar).Value
--
Ken Snell
<MS ACCESS MVP>
Dan said:
No, what I am looking for is the context in which you can use a
variable
tp
refer to a field. I think it's somehting like the following:
this![myVar].value = "Whatever I want"
I just can't get it right though
:
Hello. Im trying to use a variable as a field name. Here's an
example:
myVar = "Forms!myForm!myField"
[myVar].value = "Whatever I want"
Does anyone know what I'm missing here?