Greyowlsl
Mlak Mlak
- Local time
- Tomorrow, 07:32
- Joined
- Oct 4, 2006
- Messages
- 204
Hi,
I have a save button on a form. I need a piece of code so that when the user clicks the button the the command for that button will pause and bring up a textbox asking if they are sure they want to save changes. If they click yes then the code is unpaused and continues, if they click no then the code is stopped and the click command ignored.
This is the code i have for the button:
Thanks for your help,
Leon
I have a save button on a form. I need a piece of code so that when the user clicks the button the the command for that button will pause and bring up a textbox asking if they are sure they want to save changes. If they click yes then the code is unpaused and continues, if they click no then the code is stopped and the click command ignored.
This is the code i have for the button:
Code:
Private Sub Command44_Click()
'Save command:
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
'Refresh command:
DoCmd.Close
DoCmd.OpenForm "frmPCB"
End Sub
Thanks for your help,
Leon