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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • idalreadyuse
    New Member
    • Jan 2008
    • 4

    #1

    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?
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    If you have a look in the Access section of the HowTo's area, I'm pretty sure this is covered.

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      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)...



      Comment

      • idalreadyuse
        New Member
        • Jan 2008
        • 4

        #4
        thanks... i just got it.. but from different sources...
        appreciate it

        Comment

        • idalreadyuse
          New Member
          • Jan 2008
          • 4

          #5
          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....

          Comment

          • QVeen72
            Recognized Expert Top Contributor
            • Oct 2006
            • 1445

            #6
            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.Compac tDatabase "C:\MyDB.md b" _
            ,"C:\NewDB.mdb" , , , ";pwd=mypwd "

            Regards
            Veena

            Comment

            Working...