I used an example i saw on this site titled "A better mouse/rat trap" essentially it prevents the user from modifying records and exiting or going onto another record before the record is saved.
The exaple has a save button on thhe main form and one on the subform. What i would like to do, is combine the functionality of both the main and subform save buttons into one save button preferably the one that is on the mmain form
I fooled around with some codes, like cut the codes that were in the subform save button and place it behind the main form save button. This works partially except it gives you two msg boxs one aski g to save changes to main form and the next saying save changes to sub form.
the next problem with it is that the second msgbox that comes up, if you click no, it does not undo the chnages made to the subform which it normally would do if the save button on the subform was clicked.
I think if i attached the zip file"a better mouse trap" you'd understand my plight. It was designed i think by ghudson "dazed and confused"
I havent changed the example only modified it using my codes, by programming my save buttons on my forms like it.
Please help.. and advise.
If you can send "very detailed" instructions iid be very grateful.
Truth is im very grateful for the help this forum has provided. Today is my dead dead dead line for this program. 6 - 7 hrs from now.
Thanks in advance for the tips.
Attachments
Last edited: