Action argument | Description |
Destination Database | A valid path and file name for the destination database. Enter the path and file name in the Destination Database box in the Action Arguments section of the Macro window. Leave this argument blank if you want to select the current database. If you run a macro containing the CopyObject action in a library database and leave this argument blank, Microsoft Access will copy the object into the library database. |
New Name | A new name for the object. When copying to a different database, leave this argument blank to keep the same name. |
Source Object Type | The object type you want to copy. Click Table, Query, Form, Report, Macro, or Module. To copy the object selected in the Database window, leave this argument blank. |
Source Object Name | The name of the object to be copied. The Source Object Name box shows all objects in the database of the type selected by the Source Object Type argument. In the Source Object Name box, click the object to copy. If you leave the Source Object Type argument blank, leave this argument blank also. If you run a macro containing the CopyObject action in a library database, Microsoft Access looks for the object with this name first in the library database, then in the current database. |