Application.DoCmd property (Access)

You can use the DoCmd property to access the read-only DoCmd object and its related methods. Read-only DoCmd.


expression. DoCmd

expression A variable that represents an Application object.


The following example opens a form in Form view and moves to a new record.

Sub ShowNewRecord() 
 DoCmd.OpenForm "Employees", acNormal 
 DoCmd.GoToRecord , , acNewRec 
End Sub

See also

Application Object