Results 1 to 4 of 4

Thread: Problem!!!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2000
    Location
    CWMBRAN,WALES,UK
    Posts
    146

    Question

    Some cleverdick has password protected a database I had on disk, so I thought I could change the pwd so that I would at least be able to open it.
    Trouble is I have an error in one line and I can't cure it.

    Code as follows
    Code:
    Private Sub Form_Load()
    
    Dim db As Database
    
        Set db = OpenDatabase("A:\arc99.mdb", True)
            db.NewPassword = "", "tg"
            db.Close
    End Sub
    The problem is with... = "", "tg"
    Keep getting "Expected end of statement" at comma, no matter what I do

    Help appreciated

    GRAHAM

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    You can't do it that way - commas cannot be used that way. What were you trying to accomplish?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Feb 2000
    Location
    CWMBRAN,WALES,UK
    Posts
    146
    Thanks Martin, that did the trick

    Cheers
    GRAHAM

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