K
Kurt
I have a main form with several linked subforms.
I would always like the main form to open on a new
record, but still allow the user to go edit other
records. So I put some code in the Form_Open event of the
main form. The main form opens on a new record, but the
*subforms* still open on the first record.
Do I need to put "DoCmd.GoToRecord , , acNewRec" in the
Open Form event for all the subforms, too? Or is there an
easier way?
This is the code for the main form:
###
Private Sub Form_Open(Cancel As Integer)
DoCmd.GoToRecord , , acNewRec
End Sub
###
Thanks.
Kurt
I would always like the main form to open on a new
record, but still allow the user to go edit other
records. So I put some code in the Form_Open event of the
main form. The main form opens on a new record, but the
*subforms* still open on the first record.
Do I need to put "DoCmd.GoToRecord , , acNewRec" in the
Open Form event for all the subforms, too? Or is there an
easier way?
This is the code for the main form:
###
Private Sub Form_Open(Cancel As Integer)
DoCmd.GoToRecord , , acNewRec
End Sub
###
Thanks.
Kurt