aqif
Registered User.
- Local time
- Today, 08:32
- Joined
- Jul 9, 2001
- Messages
- 158
Hi
I'm trying to build a module as :
Public Function CheckVal()
If MsgBox("You are changing the value of a field which is reffered in other information forms, are you aure?", vbYesNo) = vbNo Then
Me.ActiveControl = Me.ActiveControl.OldValue
End If
End Function
What I want to do is that on every text box of different forms I'll write like
AfterUpdate: =CheckVal()
When I put the same code within the form code section it executes OK, but because I have about 20+ forms so I want to build a module and then just call it whereever I want to call. I know I m missing smthng but can't seem to figure it out
Cheers!
Aqif
I'm trying to build a module as :
Public Function CheckVal()
If MsgBox("You are changing the value of a field which is reffered in other information forms, are you aure?", vbYesNo) = vbNo Then
Me.ActiveControl = Me.ActiveControl.OldValue
End If
End Function
What I want to do is that on every text box of different forms I'll write like
AfterUpdate: =CheckVal()
When I put the same code within the form code section it executes OK, but because I have about 20+ forms so I want to build a module and then just call it whereever I want to call. I know I m missing smthng but can't seem to figure it out
Cheers!
Aqif