Results 1 to 3 of 3

Thread: Compacting Databases

  1. #1

    Thread Starter
    Registered User
    Join Date
    Apr 1999
    Location
    Brazil
    Posts
    144

    Question

    Hi!

    My MDB has about 4MB and when I compact it don't be small.
    I use this code:
    DBEngine.CompactDatabase cTmpFile, m_DataBaseName

    When I use access it down to 2MB??

    What I'm doing wrong?


    Thanks in advance.
    Jefferson


  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    Your code will compact cTmpFile and place the compacted version in whatever name m_DataBaseName resolves to. If it doesn't have a path associated with that name it will wind up in app.path. Did you perhaps mean to do DBEngine.CompactDatabase m_DataBaseName, cTmpFile
    instead?

  3. #3

    Thread Starter
    Registered User
    Join Date
    Apr 1999
    Location
    Brazil
    Posts
    144

    Thumbs up Thanks!

    Thanks!
    I gonna see that!

    Jefferson

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width