-
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
-
You can't do it that way - commas cannot be used that way. What were you trying to accomplish?
-
Remove the =
db.NewPassword "", "tg"
-
Thanks Martin, that did the trick
Cheers
GRAHAM :)