K
Kerri
I have a main form with a subform. There are several items on the main form,
but the only control that contains data is a date field and an autonumber
field (meant to assign a unique ID automatically to each new record.) The
date field on the main form may be populated using a popup calendar control
(thank you allen browne) or by the user typing a date directly into the
control, or the user may be happy with the default value I have set for the
field automatically. In this latter case, they may proceed directly to the
subform and start entering subform data without ever really interacting
directly with the main form. If they do not interact with that date field on
the main form, the autonumber field on the main form never changes from the
"autonumber" state and the main form record does not save. I end up with a
bunch of orphaned subform records if they close the entire form/subform
without ever interacting with that date field.
I have set the main form to open with the focus in my date field, and have
tried a few things using the "lost focus" event on this control to force a
save, but I'm not getting anywhere. Could you help me figure out how to
force the main form record to save if the user begins entry on the subform?
Apologies in advance ... I'm learning.
Kerri
but the only control that contains data is a date field and an autonumber
field (meant to assign a unique ID automatically to each new record.) The
date field on the main form may be populated using a popup calendar control
(thank you allen browne) or by the user typing a date directly into the
control, or the user may be happy with the default value I have set for the
field automatically. In this latter case, they may proceed directly to the
subform and start entering subform data without ever really interacting
directly with the main form. If they do not interact with that date field on
the main form, the autonumber field on the main form never changes from the
"autonumber" state and the main form record does not save. I end up with a
bunch of orphaned subform records if they close the entire form/subform
without ever interacting with that date field.
I have set the main form to open with the focus in my date field, and have
tried a few things using the "lost focus" event on this control to force a
save, but I'm not getting anywhere. Could you help me figure out how to
force the main form record to save if the user begins entry on the subform?
Apologies in advance ... I'm learning.
Kerri