|
-
Aug 7th, 1999, 12:25 AM
#1
Thread Starter
New Member
Hi,
Here is what I wrote:
'DB is a database object
'DBE is a DBEngine object
'FileName refer to the file to open
Set DB = DBE.OpenDatabase(FileName, False, , "Microsoft Jet Database; pwd=mypass")
'The password for the file is mypass
I'm getting an "Not valid password" everytime.
What is wrong with this code ?
Bye
------------------
____________________
Message from
Remy Roy
____________________
-
Aug 7th, 1999, 01:17 AM
#2
Frenzied Member
Dumb question but do you have a userid or are you trying to connect as admin (in Access)?
The string '"Microsoft Jet Database; pwd=mypass")' would become '"Microsoft Jet Database;UID=; pwd=mypass")'
-
Aug 7th, 1999, 08:36 PM
#3
Thread Starter
New Member
The addtition of UID did not remove the not valid password error.
------------------
____________________
Message from
Remy Roy
____________________
-
Aug 8th, 1999, 04:33 AM
#4
Frenzied Member
Can you open the database in Access and do you have to use a user id / password to use Access?
-
Aug 9th, 1999, 05:02 PM
#5
New Member
I have exactly the same problem...
I only need to enter a password when opening the database in Access, when I try through VB it simply gives the Not A Valid Password error.
Please can someone e-mail me if a response is given as I won't be auto-notified (not my posting). Thanks!
------------------
Chris Keeble
www.giglist.com
mailto:[email protected]
-
Apr 16th, 2001, 02:57 AM
#6
New Member
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
|