• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

The DoCmd Object

Most macro commands can be performed in VBA code by using the DoCmd object. The macro action becomes a method of the DoCmd object, and the arguments associated with each macro action become the arguments of the method. For example, the following method of the DoCmd object is used to open a form:

DoCmd.OpenForm "frmClients", acNormal, "", "[tblClients]![IntroDate]>Date()-30", _
                acEdit, acNormal

					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint