Results 1 to 3 of 3

Thread: Access Db Compact

  1. #1

    Thread Starter
    Member
    Join Date
    May 2001
    Location
    Rouen
    Posts
    58

    Access Db Compact

    HELLO!

    I would like compact my ACCESS DATABASE with a vb code

    How can i do?

    Thank's

    Cybercool

  2. #2
    Frenzied Member oh1mie's Avatar
    Join Date
    Sep 2001
    Location
    Finland
    Posts
    1,043
    oh1mie/Vic


  3. #3
    Member
    Join Date
    Aug 2002
    Posts
    33

    Compact Access Db in VB

    Ensure database is closed. This can be checked by looking for a the database name with an extension of LDB. The dbName must include the the path where the database is included

    dbName = App.Path & "\MyDB.mdb"

    DBEngine.CompactDatabase dbName, dbName & "!!!"
    Kill dbName
    Name dbName & "!!!" As dbName

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