Using Access 'Security' from VB 
Author Message
 Using Access 'Security' from VB

Sorry if this has been covered before, but I am having some trouble
getting the Access database security scheme to work from VB.  I
have a database (mdb) file and a workgroups information file (dbw)
on an NT server with read/write permissions (at this stage).  I am
accessing the data from VB using both DAO objects (for use within
the code) and data controls (for spiffy DBGrid boxes etc).  Previously,
I had the database unsecured, but now that it is secured I get an error
to the effect that it either can't find the .mdw file or it is locked.
This
happens when I try to opena a workspace with CreateWorkspace.  It
doesn' t appear to be locked (no .ldb file) and is in the place the
relevent
registry key specifies. Can anyone think of a good reason why it won't
read the wretched thing?  Thanks in advance.

David Barrett



Sun, 13 Aug 2000 03:00:00 GMT  
 Using Access 'Security' from VB

Quote:
>This
>happens when I try to opena a workspace with CreateWorkspace.  It
>doesn' t appear to be locked (no .ldb file) and is in the place the
>relevent
>registry key specifies. Can anyone think of a good reason why it won't
>read the wretched thing?  Thanks in advance.

----------------------------------------------------------------------------
----------------------------------
What is exact text of the error? Because I have had prety same troubles. I
just couldn't get to work VB with Access secured databases. Everything
worked fine while I was programming at home, but when I installed
application on users comp it wouldn't open the database.

Guess how I solved the problem? I've installed VB on the users computer.

Josip



Mon, 14 Aug 2000 03:00:00 GMT  
 Using Access 'Security' from VB

Have you tryed setting the DAO.SystemDB to the path and filename of your
workgroup information file?

Quote:

> Sorry if this has been covered before, but I am having some trouble
> getting the Access database security scheme to work from VB.  I
> have a database (mdb) file and a workgroups information file (dbw)
> on an NT server with read/write permissions (at this stage).  I am
> accessing the data from VB using both DAO objects (for use within
> the code) and data controls (for spiffy DBGrid boxes etc).  Previously,
> I had the database unsecured, but now that it is secured I get an error
> to the effect that it either can't find the .mdw file or it is locked.
> This
> happens when I try to opena a workspace with CreateWorkspace.  It
> doesn' t appear to be locked (no .ldb file) and is in the place the
> relevent
> registry key specifies. Can anyone think of a good reason why it won't
> read the wretched thing?  Thanks in advance.

> David Barrett




Sun, 20 Aug 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Accessing 'Local Security Policy" using VBScript

2. Help:Using VB Funtions In Access With DLL's, EXE's

3. Help:Using VB Funtions In Access With DLL's, EXE's

4. Help:Using VB Funtions In Access With DLL's, EXE's

5. Help:Using VB Funtions In Access With DLL's, EXE's

6. 'how vb handles security set by MS access

7. 'how vb handles security set by MS access

8. ACCESS '97 / VB 5.0 : SERIOUS SECURITY PROBLEM OR IS IT JUST ME.

9. Role-Based Security Using User's Windows Account Info Not Working Under Win9x

10. Want to test user's security group membership in Access

11. Access '95 security

12. 'System.Security.SecurityException'

 

 
Powered by phpBB® Forum Software