simon mills
Registered User.
- Local time
- Today, 13:00
- Joined
- Sep 20, 2005
- Messages
- 14
Good morning everyone. Im stuck and wondered if anyone could help.
I have a database that opens other database at set time of the night. When the databases open at specific times they run lines of code designed to keep day to day admin to a minimum and use the quiet networks as they as fairly slow and cumbersome. At the end of the modules I want to have the database compact and then close. Due to limited hard drive space they cant stay open.
I have tried send keys ( "%FX" and "%tdc" ) but as the databases running dont always have focus they dont work, I have also tried docmd.application.close ......... but this has errored. Can anyone help and give me lines of code that will compact the database and then close it. Im wary that a compact will restart the code aswell. I could get the calling database to compact if I knew the code .... but I have to admit to being completely stumped now.
Thanx in advance for any help.
Si
I have a database that opens other database at set time of the night. When the databases open at specific times they run lines of code designed to keep day to day admin to a minimum and use the quiet networks as they as fairly slow and cumbersome. At the end of the modules I want to have the database compact and then close. Due to limited hard drive space they cant stay open.
I have tried send keys ( "%FX" and "%tdc" ) but as the databases running dont always have focus they dont work, I have also tried docmd.application.close ......... but this has errored. Can anyone help and give me lines of code that will compact the database and then close it. Im wary that a compact will restart the code aswell. I could get the calling database to compact if I knew the code .... but I have to admit to being completely stumped now.
Thanx in advance for any help.
Si