Copies a database object into the same or another database: DoCmd.CopyObject([DestinationDatabase][, NewName][, SourceObjectType][, SourceObjectName])
Public Sub MakeBackupCopy()
DoCmd.CopyObject , "Employees Backup", acTable, "Employees"
DoCmd.SetWarnings False
DoCmd.OpenQuery "UpdatePrices"
DoCmd.SetWarnings True
End Sub
Related examples in the same category