I was hoping someone can help a noob. I have a main form and tab form. User enters basic information on the main form which passed to subform. After the rest of the information is entered I have a button which writes to table. the problem is that I need to go to the next record and set focus back on the main form. The code writes but the form seems to be frozen with the previous data and I cannot navigate the main form. Thanks for your help.
Code:
Private Sub btnSave_Click()
Dim strInsert As String
strInsert = "INSERT INTO [Events] (Welder,Pass) VALUES ('" & Me.Welder & "','" & Me.Pass & "')"
Debug.Print strInsert
CurrentDb.Execute strInsert, dbFailOnError
DoCmd.RunCommand acCmdRecordsGoToNext
Forms!frmEventDetails.SetFocus
Forms!frmEventDetails!cbWelder.SetFocus
End Sub