WebFaktor
03-14-2002, 06:51 AM
I've got a main/sub form established with 1 parent-child field established where by their relationship is maintained.
Before tabbing from the mainform (part A) to sub form (part B)I have a beforeupdate code/event established telling users that by proceeding to part B they must save their part A responses and asking if they are sure they want to proceed. . . I've done the same for the subform, i.e., before they enter a new record set they are are advised similiarly per the beforeupdate function.
Problem: If a user proceeds to part B and decides then to cancel out of the form, the Me.Undo code/event does not save the child field whereby that subform info is related to the already saved parent info in part A. Thus, my reports do not properly represent the information saved in part A because they require the child field info in part B.
Can I selectively undo certain fields in a subform and thereby save the child field info when a user cancels out of the form like I've described above?
Thank you in advance,
Michael
Before tabbing from the mainform (part A) to sub form (part B)I have a beforeupdate code/event established telling users that by proceeding to part B they must save their part A responses and asking if they are sure they want to proceed. . . I've done the same for the subform, i.e., before they enter a new record set they are are advised similiarly per the beforeupdate function.
Problem: If a user proceeds to part B and decides then to cancel out of the form, the Me.Undo code/event does not save the child field whereby that subform info is related to the already saved parent info in part A. Thus, my reports do not properly represent the information saved in part A because they require the child field info in part B.
Can I selectively undo certain fields in a subform and thereby save the child field info when a user cancels out of the form like I've described above?
Thank you in advance,
Michael