K
knobblysnail
Guest
I have a form containing 2 nested subforms. Usually the controls on the first subform are not changed from the default values.
On the parent form I have a New Record button which fires the automatically created code:
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.GoToRecord , , acNewRec
This New Record button saves the data on the parent form, but does not create records for the subforms. They are all saved correctly if I use the navigation buttons on the main form to move to a new record.
How do I get my own button to work properly?
Is there a way to save default values on a subform without making any changes?
thanks
On the parent form I have a New Record button which fires the automatically created code:
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.GoToRecord , , acNewRec
This New Record button saves the data on the parent form, but does not create records for the subforms. They are all saved correctly if I use the navigation buttons on the main form to move to a new record.
How do I get my own button to work properly?
Is there a way to save default values on a subform without making any changes?
thanks