A
aardvick
I have many forms with imbedded continuous subforms (they look like
datasheets with one line per record). In the parent form I have control
buttons such as "Edit", "Save", "Cancel", etc, with code that changes the
format and edit-ability of fields in the subform.
When the user modifies a record in the subform and then moves to another
record in the same subform, I use the "before update" event to determine if
the user wants to save or discard those changes.
Here is the problem: when a user modifies a record on the continuous subform
and then clicks on my "Save" button (which is on the parent form, remember),
it triggers the "before update" dialog box. Of course. This makes sense as
the user is leaving the record. However it means that the user has to click
"save" twice: once to trigger that they are done and then again on the dialog
box.
The "on click" event for the "Save" button doesn't run until after the
"before update" event for the continuous form. Is there some other event
that I can use to avoid the double save phenomenon?
Sorry if super obvious. No one else seems to have this problem....
-Aardvick
datasheets with one line per record). In the parent form I have control
buttons such as "Edit", "Save", "Cancel", etc, with code that changes the
format and edit-ability of fields in the subform.
When the user modifies a record in the subform and then moves to another
record in the same subform, I use the "before update" event to determine if
the user wants to save or discard those changes.
Here is the problem: when a user modifies a record on the continuous subform
and then clicks on my "Save" button (which is on the parent form, remember),
it triggers the "before update" dialog box. Of course. This makes sense as
the user is leaving the record. However it means that the user has to click
"save" twice: once to trigger that they are done and then again on the dialog
box.
The "on click" event for the "Save" button doesn't run until after the
"before update" event for the continuous form. Is there some other event
that I can use to avoid the double save phenomenon?
Sorry if super obvious. No one else seems to have this problem....
-Aardvick