Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > Re: Error when ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 7 Topic 30632 of 31576
Post > Topic >>

Re: Error when compact/repair on start-up

by a a r o n _ k e m p f <aaron_kempf@[EMAIL PROTECTED] > Jul 2, 2008 at 07:09 AM

if your database is too stupid to be stable-- then move to something
that is.

SQL Server works perfect for me-- I never have to compact and repair.

I believe that 'Auto-Shrink' is enabled by default on smaller editions
of SQL Server

-Aaron

On Jul 2, 5:15=A0am, teddysn...@[EMAIL PROTECTED]
 wrote:
> My client has asked if it's possible to Compact and Repair his Front
> End database programmatically. =A0I remember doing this from a VB
> application about 10 years ago, so I wondered if it was possible in
> Access.
>
> The application is Access 2003 in 2002-2003 File Format.
>
> I've added the following function to the Front End in a global module:
>
> Public Function CandRDB()
>
> CommandBars("Menu Bar"). _
> Controls("Tools"). _
> Controls("Database utilities"). _
> Controls("Compact and Repair Database..."). _
> accDoDefaultAction
>
> End Function
>
> and created an AutoExec macro that only calls this function. =A0It
> appears to be working (something happens, there's an hourglass cursor
> for example) but then barfs with the following:
>
> "-2147467259 =A0Method 'accDoDefaultAction' of object
> '_CommandBarButton' failed"
>
> From what I've read, this can happen if the Menu Bar is not visible,
> but it is.
>
> Any thoughts? =A0I know that the database can be set to compact on exit,
> but that's not what the client has asked for.
>
> Thanks
>
> Edward
 




 7 Posts in Topic:
Error when compact/repair on start-up
teddysnips@[EMAIL PROTECT  2008-07-02 05:15:47 
Re: Error when compact/repair on start-up
"Stuart McCall"  2008-07-02 14:07:46 
Re: Error when compact/repair on start-up
a a r o n _ k e m p f <  2008-07-02 07:09:03 
Re: Error when compact/repair on start-up
"Michiel Rapati-Kekk  2008-07-02 14:26:10 
Re: Error when compact/repair on start-up
"Linq Adams via Acce  2008-07-02 14:38:51 
Re: Error when compact/repair on start-up
"Keith Wilby" &  2008-07-02 15:52:10 
Re: Error when compact/repair on start-up
a a r o n _ k e m p f <  2008-07-02 21:28:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 23:16:07 CST 2008.