Application.DoCmd (Access)
You can use the DoCmd property to access the read-only DoCmd object and its related methods.
Sub ShowNewRecord()
DoCmd.OpenForm "Employees", acNormal
DoCmd.GoToRecord , , acNewRec
End Sub
You can use the DoCmd property to access the read-only DoCmd object and its related methods.
Sub ShowNewRecord()
DoCmd.OpenForm "Employees", acNormal
DoCmd.GoToRecord , , acNewRec
End Sub