I have a morning job that I have scheduled to kick off at 0300 am each morning where I work.
What I would like to do as one of the first steps in the Autoexec macro is to rename another database to prevent users accessing while this update is running and once the update has completed, rename back to the original database name. One of the steps in my morning job is to transfer approximately 28 tables to update in another database and sometimes when it gets to this step, someone is in the database where I am trying to update the tables and I have to wait and keep trying the transfer macro and hope whoever is in the database has gotten out by now. This can be very frustrating.
Does anyone have the Visual Basic coding to rename in one MS Access database another MS Access database?
I would appreciate it very much if you could send to me.
Thanks in advance.
What I would like to do as one of the first steps in the Autoexec macro is to rename another database to prevent users accessing while this update is running and once the update has completed, rename back to the original database name. One of the steps in my morning job is to transfer approximately 28 tables to update in another database and sometimes when it gets to this step, someone is in the database where I am trying to update the tables and I have to wait and keep trying the transfer macro and hope whoever is in the database has gotten out by now. This can be very frustrating.
Does anyone have the Visual Basic coding to rename in one MS Access database another MS Access database?
I would appreciate it very much if you could send to me.
Thanks in advance.