G
Guest
Hi,
I have the following code in a txtLocation before update event:
If vbNo = MsgBox("Do you want to change to """ & _
Me.txtLocation.Value & """ location?", _
vbQuestion + vbYesNo + vbDefaultButton1, _
"Change the Status?") Then Cancel = True
I want to also show the 'old' value before the user typed over it. So the
msg box shows "Do you want to change 'old value' to 'new value' location?"
I suspect I need to capture the 'old' value in a variable and then use it in
my IF statement. Any clues?
Cheers,
nB
I have the following code in a txtLocation before update event:
If vbNo = MsgBox("Do you want to change to """ & _
Me.txtLocation.Value & """ location?", _
vbQuestion + vbYesNo + vbDefaultButton1, _
"Change the Status?") Then Cancel = True
I want to also show the 'old' value before the user typed over it. So the
msg box shows "Do you want to change 'old value' to 'new value' location?"
I suspect I need to capture the 'old' value in a variable and then use it in
my IF statement. Any clues?
Cheers,
nB