Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2007

Tip: Looking for answers? Try searching our database.

Compacting access database using VB

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hashish - 19 Oct 2007 11:45 GMT
Hi,

This is actually an MS Access problem, but i thought i'd put it here as
well. If anyone can help....

I am working on a database and on a specific form i have a button for
'Compact Database'. Now the code i use to compact onClick of the button is:

CommandBars("Menu Bar").Controls("Tools").Controls("Database
utilities").Controls("Compact and repair database...").accDoDefaultAction

This works fine except if a guy in say, japan, uses it and has a japanese
language pack, then access cant find "Menu Bar", "Tools", etc. cause they are
in english in the code and in japanese in access and a problem occurs.

so i wanted to know if there is a different way to compact where i could
probably use some internal properties etc. and where language wont be a
problem. I need to compact an active database....
alborg - 22 Oct 2007 09:01 GMT
Check out the code found here:

http://www.ozgrid.com/forum/showthread.php?t=36395

It can be called on database close...

AL

> Hi,
>
[quoted text clipped - 14 lines]
> probably use some internal properties etc. and where language wont be a
> problem. I need to compact an active database....
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.