Gasman
Enthusiastic Amateur
- Local time
- Today, 08:08
- Joined
- Sep 21, 2011
- Messages
- 16,643
Hi,
I am trying to write a piece of code that I can use in any event, rather than having to change it to suit for each name of the control on the form.
In Foxpro we had the ability to use 'macro substitution', so where I would want to issue a command like 'cb.SetText Me.Size' or 'cb.SetText Me.Ship' I would write the equivalent cb.SetText &ControlName where Control name would contain "Me.Size" or "Me.Ship".
Is there an equivalent method in Access please.?
TIA
I am trying to write a piece of code that I can use in any event, rather than having to change it to suit for each name of the control on the form.
In Foxpro we had the ability to use 'macro substitution', so where I would want to issue a command like 'cb.SetText Me.Size' or 'cb.SetText Me.Ship' I would write the equivalent cb.SetText &ControlName where Control name would contain "Me.Size" or "Me.Ship".
Is there an equivalent method in Access please.?
TIA