I have an add record form, and after clicking on the command button to save the record, the cursor seems to disappear. I would like it to return to the first field in the form ready for another record entry. Anyone have any idea what I could do to make this happen?
you need to set the focus to your txtbox you want the cursor to appear. ex. Report_Name is the name of my text box it want the cursor to go to after i click the cmd button
Private Sub cmdNewRecord_Click()
On Error GoTo Err_cmdNewRecord_Click
DoCmd.GoToRecord , , acNewRec
Report_Name.SetFocus
Exit_cmdNewRecord_Click:
Exit Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.