Unfortunately, Access does not expose the name of the control the event is
for, or the name of the executing event.
If the user typed into the control, it will be:
Me.ActiveControl
That may not be the case if the event procedure is executing because you
called it like this:
Call Text0_BeforeUpdate(False)
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"john" <hg*@neckso.comwrote in message
news:b7***************************@cache120.multik abel.net...
>I have a bound textfield in my form. In the beforeupdate event of that
field I want to refer to that field's value. What's the easiest way to
refer to that field's value?
st = MyFieldName works but I'd rather refer in a more generic way like
st = Me (which doesn't work).
Thanks,
john