How to compact/compressing mdb file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jerry Maiapu
    Contributor
    • Feb 2010
    • 259

    #1

    How to compact/compressing mdb file

    Can anyone tell me how I can really compress/compact my 17MB mdb file.
    A link to any third party MS Access 2003 compactor would do.
    I have about 3 tables
    1st table( 20 entries)
    2nd // (15 records)
    3rd // ( 3 records)

    I have about 5 queries and 10 forms

    But I don't see any reason why my db file is this big.

    Thanks
  • TheSmileyCoder
    Recognized Expert Moderator Top Contributor
    • Dec 2009
    • 2322

    #2
    Originally posted by Jerry Maiapu
    Can anyone tell me how I can really compress/compact my 17MB mdb file.
    A link to any third party MS Access 2003 compactor would do.
    I have about 3 tables
    1st table( 20 entries)
    2nd // (15 records)
    3rd // ( 3 records)

    I have about 5 queries and 10 forms

    But I don't see any reason why my db file is this big.

    Thanks
    Have you tried within Access itself to click:
    Tools->Database Functions->Compact and Repair?
    (Menu names may be different, depending on language settings)

    Comment

    • ahmedtharwat19
      New Member
      • Feb 2007
      • 55

      #3
      OR You Can Use This Code in Vba

      Code:
      CommandBars("Menu Bar").Controls ("Tools") & _
      .Controls("Database utilities") & _
      .Controls("Compact and repair database...").accDoDefaultAction
      Best Regards ,

      Ahmed Tharwat(Medo)

      Comment

      • ahmedtharwat19
        New Member
        • Feb 2007
        • 55

        #4
        But I don't see any reason why my db file is this big.
        The Reason : Every Time You Edit The mdb file This Encrease The mdb file size , So You Should Run The Compact & Repair The Data base After You Finish from Edit mdb.

        Best Regards ,

        Ahmed Tharwat(Medo)

        Comment

        • missinglinq
          Recognized Expert Specialist
          • Nov 2006
          • 3533

          #5
          This procedure has been repeatedly been given as the cause of corruption, so you should always back up your database before running C & R!

          For this reason, IMHO, the Compact on Close option should never be used!

          Linq ;0)>

          Comment

          • Jerry Maiapu
            Contributor
            • Feb 2010
            • 259

            #6
            I am sorry I would have told you already. I used C&Repair tool in access many times but still no changes. Are there other ways of compact/compressing apart from C&R tool or removing images from forms. (FYI: I have only one image in the start up form).

            Thanks

            Comment

            • OldBirdman
              Contributor
              • Mar 2007
              • 675

              #7
              You could try the "Jet Compact Utility" by Microsoft. This is a free download from MS and may do things the normal Compact & Repair cannot do.

              Comment

              • missinglinq
                Recognized Expert Specialist
                • Nov 2006
                • 3533

                #8
                First off, this isn't really a "big" database!

                Secondly, if the image is actually stored in the database, rather than simply being linked to, and this is pre-Access 2007, this is probably your problem.

                Linq ;0)>

                Comment

                • Jerry Maiapu
                  Contributor
                  • Feb 2010
                  • 259

                  #9
                  No it's a link image so I'll try and check the link.

                  Thanks

                  Comment

                  • Jerry Maiapu
                    Contributor
                    • Feb 2010
                    • 259

                    #10
                    OldBirdman,the problem seem to persist even now would you you tell me how to use the tool you advised me to download (POST#70? I downloaded it. The untility tool requires us to load two mdb files which two mdb files is it referring to?
                    Thanks

                    If anyone can help do so.
                    Cheers..

                    Comment

                    • Jerry Maiapu
                      Contributor
                      • Feb 2010
                      • 259

                      #11
                      OldBirdman,the problem seem to persist even now would you you tell me how to use the tool you advised me to download (POST#70? I downloaded it. The utility tool requires us to load two mdb files. Compact From (Source) and Compact into (Destination).W hich two mdb files is it referring to?
                      Thanks

                      If anyone can help do so.
                      Cheers..

                      Comment

                      • OldBirdman
                        Contributor
                        • Mar 2007
                        • 675

                        #12
                        This utility creates a new file, leaving the old one unchanged. Therefore, you do not need to backup the file before attempting to compact.
                        Source is the name of your database.
                        Destination is the name you want for the compacted database.
                        After you test the compacted version, you can delete your original copy(Source) and rename the new(Destination ) to the original name.
                        Although this is not a 'third party' compactor, I have found that it compacts to the smallest size possible, as compared with Access 'Compact and Repair Database...' Tool

                        Comment

                        • Jerry Maiapu
                          Contributor
                          • Feb 2010
                          • 259

                          #13
                          The database after compacting has now increased somehow to 18,996 kb which is about 19meg. Really pissing me off. Is there any other way to compact the mdb file?
                          Thanks

                          Comment

                          • OldBirdman
                            Contributor
                            • Mar 2007
                            • 675

                            #14
                            The only other way I know of is to start with a blank database and import the objects from your current database.
                            If you do this in several steps, importing only a few objects at a time, you should be able to figure out which object(s) are causing the excessive size.

                            Comment

                            • Jerry Maiapu
                              Contributor
                              • Feb 2010
                              • 259

                              #15
                              Thanks I'll do that and come to you later

                              Comment

                              Working...