B
Biggles
Hi
I am trying to automate my monthly backup process, and I need some
assistance. I am copying a replicated database and I want to make some
changes to the queries in the backup, to basically hard code the dates. I am
trying to issue a command to recover design master, with this code below, but
get Command not available at this time. When the backup database opens, I
hide the database window, but I can still get to the command. Any ideas?
Dim AccessApp As Application
Set AccessApp = CreateObject("Access.Application")
AccessApp.OpenCurrentDatabase BACKUPNAME
'Make this the master
Application.RunCommand acCmdRecoverDesignMaster
Note: This code is running from a different database. Also, as a side
note, is the method of opening the database above DAO, ADO or something I
understand even less?
I am trying to automate my monthly backup process, and I need some
assistance. I am copying a replicated database and I want to make some
changes to the queries in the backup, to basically hard code the dates. I am
trying to issue a command to recover design master, with this code below, but
get Command not available at this time. When the backup database opens, I
hide the database window, but I can still get to the command. Any ideas?
Dim AccessApp As Application
Set AccessApp = CreateObject("Access.Application")
AccessApp.OpenCurrentDatabase BACKUPNAME
'Make this the master
Application.RunCommand acCmdRecoverDesignMaster
Note: This code is running from a different database. Also, as a side
note, is the method of opening the database above DAO, ADO or something I
understand even less?