The main form itself does not have an OnEnter property. Do you mean that I
should use an OnEnter property for one of the controls on the main form?
Also, how do I refer to the subform in the context of the main form?
Thank you.
02.06.06 10.06 hst
> For the main form OnEnter property, create an event procedure to set your sub
> form AllowEdits property to False.
[quoted text clipped - 6 lines]
> > customer being selected in the main form), so that the user needs to click on
> > the "Edit record" button again to make changes to the detail records.
AccessTaxMan - 09 Feb 2006 18:02 GMT
I stand corrected. Try using the OnCurrent, or OnFocus event of the main
form to set your subform AllowEdits property to False.
You stated your subform displays records related to choices made on your
main form, but does not allow edits until the command button is clicked. I
assumed that your subform AllowEdits property was set to No when information
is first displayed. After making edits, and the user moves back to the main
form to make another selection, you seem to need an event procedure to
recreate this condition.
> The main form itself does not have an OnEnter property. Do you mean that I
> should use an OnEnter property for one of the controls on the main form?
[quoted text clipped - 13 lines]
> > > customer being selected in the main form), so that the user needs to click on
> > > the "Edit record" button again to make changes to the detail records.
UncleOli - 07 Apr 2006 03:57 GMT
Sorry for not responding earlier. Thanks for your help.
Oli
04.06.06 16.55 hst
> I stand corrected. Try using the OnCurrent, or OnFocus event of the main
> form to set your subform AllowEdits property to False.
[quoted text clipped - 23 lines]
> > > > customer being selected in the main form), so that the user needs to click on
> > > > the "Edit record" button again to make changes to the detail records.