psruthishali
06-26-2012, 08:40 AM
I have 2 fields in a form of which, if value of one field is changed, the other had to be changed. So, if value in one of the fields is changed, I want to display a message box saying that the other had to be changed. Can anyone tell me how to write a VBA script for this. Thanks in advance.
MacroShadow
06-26-2012, 12:34 PM
In the after update event of the changed field put in the following:
MsgBox "The value of YourFirstField field changed." _
& vbCrLf & _
"You must change the value of YourSecondField field."
Check the help files for all msgbox options.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.