D
DZ
I have many CommandButton in a form header. Each one updates a specific field
from a value in an unbound textbox located in the form header.
The only difference between the Click subs for each button are 2 references
to the unbound text box (values coming from) and the field (value going to)
it is updating.
I carefully named each command button and unbound textbox the same as the
ControlSouirce it is affecting, except for a prefix (txt and cmd)
It would great if there was a way for each button click sub call the same
Sub that somehow could get the command button name, because the command
button name could be easily parsed and used for the unbound text box and the
field reference in the sub.
This is sort of like the CommandButton Array concept in VB6, but I'm not
sure if this is possible in Access.
Any ideas would be welcome
from a value in an unbound textbox located in the form header.
The only difference between the Click subs for each button are 2 references
to the unbound text box (values coming from) and the field (value going to)
it is updating.
I carefully named each command button and unbound textbox the same as the
ControlSouirce it is affecting, except for a prefix (txt and cmd)
It would great if there was a way for each button click sub call the same
Sub that somehow could get the command button name, because the command
button name could be easily parsed and used for the unbound text box and the
field reference in the sub.
This is sort of like the CommandButton Array concept in VB6, but I'm not
sure if this is possible in Access.
Any ideas would be welcome