W
Walter
I want to verify any changes made to a form after the
original entry. I know this can be done on the form's
BeforeUpdate event. I have figured out the MsgBox's
prompt, buttons, default button, and title but don't
understand from there. What I am trying to do is have a
command button to save and close the form. I have this
working(I added the DoCmd.Close Form statement to the code
created by the wizard for the save command). When data
has changed and BeforeUpdate comes into play, I would like
3 choices;yes, no, cancel. Yes=save and close, no=don't
save and close, cancel=close MsgBox and remain open. I
think this has to be done with an If Then statement but I
don't know how. If someone could please tell me and
explain in laymen's terms what each thing does, I would
appreciate it and maybe it will help me learn how to use
other things.
Thanks in advance,
Walter
original entry. I know this can be done on the form's
BeforeUpdate event. I have figured out the MsgBox's
prompt, buttons, default button, and title but don't
understand from there. What I am trying to do is have a
command button to save and close the form. I have this
working(I added the DoCmd.Close Form statement to the code
created by the wizard for the save command). When data
has changed and BeforeUpdate comes into play, I would like
3 choices;yes, no, cancel. Yes=save and close, no=don't
save and close, cancel=close MsgBox and remain open. I
think this has to be done with an If Then statement but I
don't know how. If someone could please tell me and
explain in laymen's terms what each thing does, I would
appreciate it and maybe it will help me learn how to use
other things.
Thanks in advance,
Walter