K
Kevin
I am using the below procedure to attempt to write to a blank text box.
Basically, I have 10 command buttons, labelled 1 thru 9 (and one with a 0)
and I want to use the procedure to write to the text box in focus. So what I
have is -- i click the command button labelled 3 and I want it to write the
numeral 3 to the text box in focus, then i select 7 and I want it to write
the 7 directly after the three --- and on
Private Sub cmdRnd5_Click()
Dim ctlThis As Control
Set ctlThis = Screen.ActiveControl
Me!ctlThis.Text = Me!ctlThis.Text & "" & cmdRnd5.Caption
End Sub
I get a run time 2465 error -- Access can't find the field ctlThis referred
to in my expression.
Any help on where I am discombobulated.
thanks
Basically, I have 10 command buttons, labelled 1 thru 9 (and one with a 0)
and I want to use the procedure to write to the text box in focus. So what I
have is -- i click the command button labelled 3 and I want it to write the
numeral 3 to the text box in focus, then i select 7 and I want it to write
the 7 directly after the three --- and on
Private Sub cmdRnd5_Click()
Dim ctlThis As Control
Set ctlThis = Screen.ActiveControl
Me!ctlThis.Text = Me!ctlThis.Text & "" & cmdRnd5.Caption
End Sub
I get a run time 2465 error -- Access can't find the field ctlThis referred
to in my expression.
Any help on where I am discombobulated.
thanks