Results 1 to 2 of 2

Thread: Compacting/Repairing Access

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Australia
    Posts
    69

    Angry

    Hi chaps....

    I hope this is a quick solution...

    Basically I'm trying to write a routine to compact and repair an Access 97 database. My routine works nicely until I add a database "password" on the database in question. I keep getting "invalid password" I know that the password is correct I believe it is my code...as follows...


    ' Do the compacting via DBEngine
    DBEngine.CompactDatabase Location, strTempFile, dbLangGeneral, dbVersion30, ";pwd = ww"


    Location and strTempFile are string values i.e "c:\temp\test.mdb"

    "ww"s the actual password.

    Any ideas anybody!!

    Regards

    Gerard
    Live long and prosper...

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Australia
    Posts
    69

    Talking

    Problem solved ...I had spaces between pwd = password, it should be

    pwd=password....

    As usual its was a little problem.
    Live long and prosper...

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