Hello everyone. I was wondering if anyone has a fix for this problem.
I have a form that an end user populates. All fields will be populated by the end user except for one, the sales ID field, which has been prepopulated all the way down the table to record 165. When the users enter there info and click save, I want the form to move to the next available row, not an entirely new record. The VBA that I use is below:
Private Sub Form_Load()
DoCmd.GoToRecord acDataForm, "Non Revshare House Misc List", acNext
AND
Private Sub SaveRecord_Click()
DoCmd.Save acForm, "Non Revshare House Misc List"
DoCmd.GoToRecord acDataForm, "Non Revshare House Misc List", acNext
End Sub.
Everytime I load the form, it goes to the previous stored record instead of moving to the next row. Is there a fix for this?
Thanks
I have a form that an end user populates. All fields will be populated by the end user except for one, the sales ID field, which has been prepopulated all the way down the table to record 165. When the users enter there info and click save, I want the form to move to the next available row, not an entirely new record. The VBA that I use is below:
Private Sub Form_Load()
DoCmd.GoToRecord acDataForm, "Non Revshare House Misc List", acNext
AND
Private Sub SaveRecord_Click()
DoCmd.Save acForm, "Non Revshare House Misc List"
DoCmd.GoToRecord acDataForm, "Non Revshare House Misc List", acNext
End Sub.
Everytime I load the form, it goes to the previous stored record instead of moving to the next row. Is there a fix for this?
Thanks