T
Tony Williams
I have an input form that has three tab controls. On two of the tab controls
are sub forms based on two other tables. I've learned thru the help of Van
T Dinh from this newsgroup that as the focus moves from the main form to the
subform the record is automatically saved. I want to display a message when
the user has keyed in the data for a new record giving them the opportunity
to say whether or not they want to save the new record or not as they click
on a command button which closes the form if they do by clicking on Yes but
leaves the form open to edit if they click on No. I've got the code sorted
for the message box but if I put it behind the Close button it doesn't work
because the record has already been saved (because by then the focus has
moved from the main form) and if I put it in the BeforeUpdate property of
the form the message pops up as the focus moves from the main form to the
sub form. The user may not always use the subform.
Can anyone help here with a possible solution?
TIA
Tony Williams
are sub forms based on two other tables. I've learned thru the help of Van
T Dinh from this newsgroup that as the focus moves from the main form to the
subform the record is automatically saved. I want to display a message when
the user has keyed in the data for a new record giving them the opportunity
to say whether or not they want to save the new record or not as they click
on a command button which closes the form if they do by clicking on Yes but
leaves the form open to edit if they click on No. I've got the code sorted
for the message box but if I put it behind the Close button it doesn't work
because the record has already been saved (because by then the focus has
moved from the main form) and if I put it in the BeforeUpdate property of
the form the message pops up as the focus moves from the main form to the
sub form. The user may not always use the subform.
Can anyone help here with a possible solution?
TIA
Tony Williams