|
-
Sep 30th, 2003, 06:31 AM
#1
Access database password (DAO)
Without the database password, the software runs fine. I can access the database and the recordsets.
VB Code:
Set dbsCanon = OpenDatabase(App.Path & "\Data\CAICTBLS.dat")
But when I implemented a password in the access database (I opened it in access and set a password), my OpenDatabase statement says the password is invalid even though they are the same.
VB Code:
Set dbsCanon _
= OpenDatabase(App.Path & "\Data\CAICTBLS.dat", , , "Microsoft Access database;pwd=canon")
I tried searching MSDN for a sample but couldn't find one.
-
Sep 30th, 2003, 10:38 AM
#2
leinad31
Try Password=cannon
-
Sep 30th, 2003, 03:06 PM
#3
New Member
You need to pass value for the 2 parameters that you skip.
This is due to a bug of DAO
-
Sep 30th, 2003, 05:17 PM
#4
Oh so they aren't really optional? Okie, I'll try both suggestions later. Thanks.
-
Oct 1st, 2003, 01:02 AM
#5
Had to tinker with the settings, but I was able to make it work like so;
VB Code:
Set dbsCanon = OpenDatabase(App.Path & "\Data\CAICTBLS.dat", False, False, ";pwd=canon")
Thanks for your help.
Last edited by leinad31; Oct 1st, 2003 at 01:08 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|