Ramya_mudambi
Registered User.
- Local time
- Today, 17:37
- Joined
- Dec 27, 2013
- Messages
- 32
Hi,
I'm struck with an issue "how to COMPACT the DB by introducing delay of 10 seconds and then close the DB"
In the Database, I'm able to accomplish the "Compact" the database using the function below.
Function Compact()
SendKeys "%(FMC)", False
End Function
As my DB is quite huge, the Compact action takes around 10 seconds to complete.
Now, i would like to Close the Database after Compacting the DB. I tried including "DoCmd.Quit" in the function. The commands in the function, closes the DB but the Compact function doesn't seem to have executed as it needs 10 seconds to complete.
Function Compact()
SendKeys "%(FMC)", False
DoCmd.Quit
End Function
I would need some guidance on how to introduce this delay of 10 seconds and then close the DB.
Kindly help.
Many thanks.
I'm struck with an issue "how to COMPACT the DB by introducing delay of 10 seconds and then close the DB"
In the Database, I'm able to accomplish the "Compact" the database using the function below.
Function Compact()
SendKeys "%(FMC)", False
End Function
As my DB is quite huge, the Compact action takes around 10 seconds to complete.
Now, i would like to Close the Database after Compacting the DB. I tried including "DoCmd.Quit" in the function. The commands in the function, closes the DB but the Compact function doesn't seem to have executed as it needs 10 seconds to complete.
Function Compact()
SendKeys "%(FMC)", False
DoCmd.Quit
End Function
I would need some guidance on how to introduce this delay of 10 seconds and then close the DB.
Kindly help.
Many thanks.