473,396 Members | 1,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

please help me... how to compress an access database by vb6.0 coding

help me please... can somebody tell me how to compress an access database by vb6.0 coding?
Jan 9 '08 #1
5 1637
Killer42
8,435 Expert 8TB
If you have a look in the Access section of the HowTo's area, I'm pretty sure this is covered.
Jan 9 '08 #2
Killer42
8,435 Expert 8TB
Also, here are links to some other discussions at TheScripts which covered this. (Note, the highlighting just reflects the search terms I entered to find them)...

http://www.thescripts.com/forum/thre...pact+code.html
http://www.thescripts.com/forum/thre...pact+code.html
http://www.thescripts.com/forum/thre...pact+code.html
Jan 9 '08 #3
thanks... i just got it.. but from different sources...
appreciate it
Jan 9 '08 #4
i have another question to ask:
i want to compress my database when close my form but why when i closed, it shows a message box says that the database were used exclusively by admin

can somebody give me the solutions please....
Jan 9 '08 #5
QVeen72
1,445 Expert 1GB
Hi,

Before writing the Code for Compact, you have to Close the Connection to database. You may also get that error, if the database is "Password" protected.. you will have to pass the Pwd in Compact statement.
Check this :

DBEngine.CompactDatabase "C:\MyDB.mdb" _
,"C:\NewDB.mdb", , , ";pwd=mypwd"

Regards
Veena
Jan 9 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Comet Developer | last post by:
I would like to compress my Access database from within my VB6 Aplication I am writing. Anyone know how? Comet
7
by: Riley DeWiley | last post by:
Subject says it all. I am writing in C++/OLEDB and want to compress + repair from my program, what do I have to do? Thanks, RDeW
8
by: Narayanan G V | last post by:
Hi..., I am facing a problem with the Access database file once the size reaches 2GB (Access 2K)... Is there a VBA code which can enable the file to compress itself automatically when I complete...
13
by: OldBirdman | last post by:
Access has an option for Compact on Close. Very good, as that should stop a major increase in size every time any .mdb file is used by Access. My question is, Is this safe? It used to be that I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.