D
David
I had a series of forms that worked off command buttons,
the forms were opened by the command button being clicked.
Each form has a 'top', 'bottom' and 'exit' button in the
footer.
I decided to put these forms instead in a tabbed form, one
tab for each form. I added the forms as subforms one to
each tab.
The forms now show with the data when each tab is pressed.
However, when I click on the form command buttons to
navigate to the top and bottom records, I get a
message 'form not open'.
The forms were originally opened by command buttons
running 'Docmd.openform "formname",,,,acFormEdit'
The failing statements are:
'DoCmd.GoToRecord acDataForm, "formname", acFirst'
or
'DoCmd.GoToRecord acDataForm, "formname", acNewRec'
the forms were opened by the command button being clicked.
Each form has a 'top', 'bottom' and 'exit' button in the
footer.
I decided to put these forms instead in a tabbed form, one
tab for each form. I added the forms as subforms one to
each tab.
The forms now show with the data when each tab is pressed.
However, when I click on the form command buttons to
navigate to the top and bottom records, I get a
message 'form not open'.
The forms were originally opened by command buttons
running 'Docmd.openform "formname",,,,acFormEdit'
The failing statements are:
'DoCmd.GoToRecord acDataForm, "formname", acFirst'
or
'DoCmd.GoToRecord acDataForm, "formname", acNewRec'