My main form has a tab control, with each tab containing a form and subform. When the main form is opened the subforms automatically scroll to the most recent record with
Private Sub Form_Load()
DoCmd.GoToRecord , , acLast
End Sub
if I try and use the code:
Private Sub Form_Current()
DoCmd.GoToRecord , , acLast
End Sub
so that each time I add a new a record, the subform automatically scrolls down and displays the recently added record, i get an error. it closes my entire database and asks me to send an error report to microsoft. why is this code not working with my subforms?
Private Sub Form_Load()
DoCmd.GoToRecord , , acLast
End Sub
if I try and use the code:
Private Sub Form_Current()
DoCmd.GoToRecord , , acLast
End Sub
so that each time I add a new a record, the subform automatically scrolls down and displays the recently added record, i get an error. it closes my entire database and asks me to send an error report to microsoft. why is this code not working with my subforms?