SECURITY: VB 4.0 16-bit and Access 2.0 
Author Message
 SECURITY: VB 4.0 16-bit and Access 2.0


I've been attempting to secure the database that is part of a system I'm
working on.  I have followed all of the instructions in the document
"Microsoft Access Version 2.0 Security", by George Snelling, and have hit
what seems to be a bit of a snag.

I have been through the exercise of creating the .mda file and putting in a
new user.  I then added the new user to the Admins group and removed the
Admin account from this group too.  After logging into the database as the
new user I ran the Security Wizard which has given me a new secure and
encrypted database where the new user owns everything.

I have placed the following code in the program's .ini file:


Here, too, is the snippet of code from within the VB 4.0 16-bit program
that I am using to create my workspace:

      DBEngine.IniPath = "C:\WINDOWS\DQA.INI"
      Set m_WS = DBEngine.CreateWorkspace(sWorkspaceName, sDefaultUser,

where sWorkspaceName, sDefaultUser and sDefaultPassword as all string
parameters passed into the routine in which this call resides.

The problem you ask?  I am able to login to the database by launching
Access and entering the password.  But, when done programmatically through
the above code, I am only ever getting the following error:

3029, Not a valid account name or password.

Hmm... Now I've read various other acticles and none of them really seem to
be very specific on how one uses the 16 bit version of VB as compared to
the 32-bit.  I read an article on VB3 which seemed to be using some sort of
Set... command to get the .ini set and then to create the workspace.
Should I be using this?

Any help would be greatly appreciated.  Thanks,

Scott McBride

Fri, 19 Nov 1999 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. SECURITY: VB 4.0 16-bit and Access 2.0

2. VB 4.0 16 Bit, Access 2.0 Problem

3. OLE with VB 4.0 16-bit and Access 2.0

4. Help: attaching Btrieve table in Access 2.0 database using VB 4.0 16-bit

5. VB 4.0 (16-Bit)/Crystal Reports (16-Bit) Print Preview Maximize Window

6. having difficulty establishing security using VB 4.0(16-bit) and Jet 2.5

7. 16 bit API calls in VB 3 supported in 32 bit VB 4.0

8. VB 4.0 16-bit Bug with OLE (Was Re: VB 4.0 Enterprise and OLE)

9. How can I access 32 bit access with 16 Bit Visual Basic ( VB 3.0 or VB 4.0 16 bit)

10. vb 4.0 / 16 and access 2.0

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

12. VB 4.0 16 bit or 32 bit Escape Key


Powered by phpBB® Forum Software