SillyMcGilly
New member
- Local time
- Today, 13:40
- Joined
- Aug 6, 2003
- Messages
- 7
I have read numerous threads on this, but no one has really answered the question the way I need it answered.
I am looking to Compact on Close in a Access97 database. I know Access 2k has this option in the Options, but 97 does not. I know I can use code like:
sendkeys "{F10}", true
sendkeys "TDC"
when I close my database, but this is no good because the user still gets prompted "Which database??" How do I do a compact on close that is totally oblivious to the user. When I manually select "Tools">"Database Utilities">"Compact & Repair", I DO NOT get prompted "Which database?"...Access just seems to know it is the current one. How do I get this same effect but automatically with no user interaction in code.? Maybe this has been posted, and I am just an idiot.
Please help.
Thanks
I am looking to Compact on Close in a Access97 database. I know Access 2k has this option in the Options, but 97 does not. I know I can use code like:
sendkeys "{F10}", true
sendkeys "TDC"
when I close my database, but this is no good because the user still gets prompted "Which database??" How do I do a compact on close that is totally oblivious to the user. When I manually select "Tools">"Database Utilities">"Compact & Repair", I DO NOT get prompted "Which database?"...Access just seems to know it is the current one. How do I get this same effect but automatically with no user interaction in code.? Maybe this has been posted, and I am just an idiot.
Please help.
Thanks