Greetings
I have a function that is used to reference 5 different text boxes (txtP, txtQ, txtR, txtS, txtT).
The function uses a 'dummy' argument, XX, to stand in for "P", "Q", ... "T" like this:
Function GetOutput(XX As String)
.....
If Len(Me.Controls("txt" & XX)) > 0 Then etc.....
.....
All of this works perfectly, but I now need to call the AfterUpdate event of the text box in question. I can't work out the syntax for this. For example, if XX = "Q", how do I get to XX to 'stand in' for Q in...
Call Me!txtQ_AfterUpdate
Thanks for any help
Vicky
(I currently cheat by just calling the AfterUpdate event of all 5 text boxes, but I'd like to know how to do this properly.)
I have a function that is used to reference 5 different text boxes (txtP, txtQ, txtR, txtS, txtT).
The function uses a 'dummy' argument, XX, to stand in for "P", "Q", ... "T" like this:
Function GetOutput(XX As String)
.....
If Len(Me.Controls("txt" & XX)) > 0 Then etc.....
.....
All of this works perfectly, but I now need to call the AfterUpdate event of the text box in question. I can't work out the syntax for this. For example, if XX = "Q", how do I get to XX to 'stand in' for Q in...
Call Me!txtQ_AfterUpdate
Thanks for any help
Vicky
(I currently cheat by just calling the AfterUpdate event of all 5 text boxes, but I'd like to know how to do this properly.)