Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
You can use the DoCmd property to access the read-only DoCmd object and its related methods. Read-only DoCmd.
Syntax
expression .DoCmd
expression A variable that represents an Application object.
Example
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