I have a form with an "Add Record" button that puts the data into the table fine. There is also a subform on this same form that displays the table along with all the entries. Upon load I have the subform displaying the last data entry by using the code:
Private Sub Form_Load()
DoCmd.GoToRecord , , acLast
End Sub
pretty simple. But after I enter data using my "Add Record" button, the subform does not automatically display the record that was just entered. It is put in the table in the subform, but just doesn't scroll down so you can see it. I feel like this is an easy fix, but I tried using AfterUpdate and some other codes similar to the one above with no luck.
Basically, I want my subform to automatically scroll to the bottom of the table (displaying the last entry) after I update the table using the "Add Record" button.
Thanks
Private Sub Form_Load()
DoCmd.GoToRecord , , acLast
End Sub
pretty simple. But after I enter data using my "Add Record" button, the subform does not automatically display the record that was just entered. It is put in the table in the subform, but just doesn't scroll down so you can see it. I feel like this is an easy fix, but I tried using AfterUpdate and some other codes similar to the one above with no luck.
Basically, I want my subform to automatically scroll to the bottom of the table (displaying the last entry) after I update the table using the "Add Record" button.
Thanks