aqif
10-09-2001, 05:44 PM
Hi http://www.access-programmers.co.uk/ubb/smile.gif
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 http://www.access-programmers.co.uk/ubb/wink.gif
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 http://www.access-programmers.co.uk/ubb/wink.gif
Cheers!
Aqif