Hi
I am trying to create an option to compact the BackEnd of a split database and also another option to back it up onto a CD-Writer.
Having looked at posts I have made a third Utility database (with no links to the BackEnd) and am trying to work out how some of the previous posts work but they are all doing slightly different things and I cannot follow the code.
Using MSAccess Help I have created the following line of code off a button in the Utility database
DBEngine.CompactDatabase "C:\DataFiles\MicaPharm\MgmMethBe.mdb", "C:\DataFiles\MicaPharm\MgmMcBeCompact.mdb"
This works fine in creating a new compacted file. Help then says (helpfully) you can delete the old file and rename the new file back to the old file name.
Since the idea is to try and simplify the user requirements, how can I do this programatically?
Also can I use a similar technique to write to CD-Rewriter which is disc D:\ ?
Any help most appreciated
All the best
Malcy
I am trying to create an option to compact the BackEnd of a split database and also another option to back it up onto a CD-Writer.
Having looked at posts I have made a third Utility database (with no links to the BackEnd) and am trying to work out how some of the previous posts work but they are all doing slightly different things and I cannot follow the code.
Using MSAccess Help I have created the following line of code off a button in the Utility database
DBEngine.CompactDatabase "C:\DataFiles\MicaPharm\MgmMethBe.mdb", "C:\DataFiles\MicaPharm\MgmMcBeCompact.mdb"
This works fine in creating a new compacted file. Help then says (helpfully) you can delete the old file and rename the new file back to the old file name.
Since the idea is to try and simplify the user requirements, how can I do this programatically?
Also can I use a similar technique to write to CD-Rewriter which is disc D:\ ?
Any help most appreciated
All the best
Malcy