I am looking for a better, surefire, way to save entered data and then proceed to new clean record for the user to enter new data into. Currently the coding behind my button is
Code:
Private Sub bttnSaveEntry_Click()
DoCmd.Save
DoCmd.GoToRecord , , acNewRec
End Sub
I realize the Save command is redundant in the case of go to a new record, however I added it in there as a safeguard since occasionally when the user clicks the button it will be presented with an error message "error "###" cannot proceed to designated record" or something similar. I used to have " , , acNext" but kept getting that message to switched it to NewRec. I haven't been able to figure out a better way to execute saving the record and proceeding to a clean form for entry. I have some fields set as required so I can't just set everything to null, plus it needs to save the data first. Thanks for help