Argument | Description |
objecttype | One of the following intrinsic constants: |
acDefault (default) acForm acMacro acModule acQuery acReport acTable | |
objectname | A string expression that's the valid name of an object of the type selected by the objecttype argument. |
If you run Visual Basic code containing the DeleteObject method in a library database, Microsoft Access looks for the object with this name first in the library database, then in the current database. |
DoCmd.DeleteObject acTable, "Former Employees Table"