Optimistic
New member
- Local time
- Today, 16:50
- Joined
- Dec 30, 2010
- Messages
- 2
Hi everyone,
First I'm new to programing and access and struck a problem.
I'm trying to pass variable on a AfterUpdate eventfrom a textbox in one form to a textbox in a sub form using TemVars. But nothing happens. But if I use the click event in on the text box it works fine.
Can someone please tell me why it does not work on the AfterUpdate event
Here is the code
Dim Roll As String
Private Sub RollID_AfterUpdate()
Roll = RollID
Text56 = Roll 'this is tempoarry to check if the value is passed
TempVars.Add "strRollID", Roll
End Sub
Private Sub RollID_Click()
Roll = RollID
Text56 = Roll 'this is tempoarry to check if the value is passed
TempVars.Add "strRollID", Roll
End Sub
your help is much appriciated.
Optimistic
First I'm new to programing and access and struck a problem.
I'm trying to pass variable on a AfterUpdate eventfrom a textbox in one form to a textbox in a sub form using TemVars. But nothing happens. But if I use the click event in on the text box it works fine.
Can someone please tell me why it does not work on the AfterUpdate event
Here is the code
Dim Roll As String
Private Sub RollID_AfterUpdate()
Roll = RollID
Text56 = Roll 'this is tempoarry to check if the value is passed
TempVars.Add "strRollID", Roll
End Sub
Private Sub RollID_Click()
Roll = RollID
Text56 = Roll 'this is tempoarry to check if the value is passed
TempVars.Add "strRollID", Roll
End Sub
your help is much appriciated.
Optimistic