Manipulating a secure Access2 db in VB4(16) 
Author Message
 Manipulating a secure Access2 db in VB4(16)

I hope someone can answer this for me. I have tried numerous variations
with no luck.

I have created a new security file and referenced that in an ini file
(db1a2.ini) as follows:

[Options]
SystemDB=C:\PROJECTS\SECURITY\Test.MDA

And in my procedure I have as follows:

DBEngine.IniPath = app.path & "\db1a2.ini"
MyUserName = "Admin"
Set MyWorkspace = DBEngine.CreateWorkspace("", MyUserName , "password")

If I join Test.mda and Logon as Admin using "password" in Access2, it
works, but no go in VB4.

I have tried the following in VB4 to access a Access95 db with success.
Dim Password as string

  Set dB = DBEngine.Workspaces(0).OpenDatabase(App.Path & _
   "\" & dBName,False, False, ";PWD=" & Password)

(can you  please adv what the False,False parameters refer to?)

Any suggestions????

Thanks in advance.

Peter



Fri, 04 Dec 1998 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Accessing a secured Access 2.0 DB with VB4.0 16-bit

2. Printing Access2.0 reports with VB4.0Pro,16

3. converting 16-bit VB4/Access2 to 32-bit

4. VB4(16) and Access2 problem.

5. Printing Access2.0 reports with VB4.0Pro,16

6. Vb4 - 16 bit and access2.0 , locking problem

7. VB4-16, JET 2.5 and Secure Access 2.0 workgroup

8. Access 2.0 secure database from VB4/16

9. accessing records in one secure DB from another secure DB - programatically

10. Access2.0 DB and VB4-16bit

11. Connect VB4-16 Bit code to Access97 DB

12. Checking For Counter Fields in Access 2.0 DB And VB4 16

 

 
Powered by phpBB® Forum Software