J
John S
Back again,
I have a form (pet owners) and a subform (continuous form; pets) Both are
bound. When I try to clear the two forms for a new record entry, sometimes
the data in the subform (for pets) remains from the previous entry. This
seems to be an intermittent problem.
The code on the onclick event of a button is simply:
DoCmd.GoToRecord , , acNewRec
txtProp.SetFocus ' (the first field in the main form)
I have eliminated "txtProp.setfocus", tried requerying the subform,
refreshing the subform, and doing the doCmd.GoToRecord" command a second
time. No luck.
So how do I fix the problem?
J. Smith
Aylmer PQ
I have a form (pet owners) and a subform (continuous form; pets) Both are
bound. When I try to clear the two forms for a new record entry, sometimes
the data in the subform (for pets) remains from the previous entry. This
seems to be an intermittent problem.
The code on the onclick event of a button is simply:
DoCmd.GoToRecord , , acNewRec
txtProp.SetFocus ' (the first field in the main form)
I have eliminated "txtProp.setfocus", tried requerying the subform,
refreshing the subform, and doing the doCmd.GoToRecord" command a second
time. No luck.
So how do I fix the problem?
J. Smith
Aylmer PQ