Code: Select all
Private Sub cmdAddNewRec_Click()
If MsgBox("Did you click the SAVE BUTTON?", _
vbQuestion + vbYesNo, "CONTINUE?") = vbNo Then
DoCmd.CancelEvent
Else
DoCmd.GoToRecord , , acNewRec
Me.cboHP.SetFocus
End If
End Sub
If I click Yes, is stays on the current record and sets focus to the cboHP field.
It does not go to a new record. Is there a form property I should look at? It is set to Data Entry = No.
Thank you,
Michael