brunces
Registered User.
- Local time
- Today, 08:11
- Joined
- Sep 12, 2004
- Messages
- 45
Friends,
Please, anybody knows if there's any way to configure permissions (add, edit, delete records) without using MS Access default Group/Users Security Accounts?
Because of particular reasons, I've created a self login system for a DB of mine, I mean, it has a table with names, passwords and levels of permission and a LOGIN form which appears when the DB is opened. A VBA code verifies the username and password typed in it and lets users have access or not to the DB. Therefore, I'm not using the default security accounts provided by MS Access.
But this operation is causing me some problems with "permissions", for example...
What if I want to allow a "level 2 user" to add records in a form, but not edit or delete any record?
Using the default security accounts (Access) it's possible to do it. But how could I do that without using it?
I tried to create different forms (based on a single one) with buttons Add and Delete enabled or disabled, depending on the level of the user logged in.
For example...
A "level 3 user" can add and edit records, but cannot delete records. So, the form opened for him has the "Delete button function" disabled. The button exists in the form, but it has no function, no utility. It's really disabled. (I could've even removed the button from the form, but I didn't want to.)
Other example...
A "level 4 user" can only "edit" existing records, I mean, he cannot add or remove records. So, the form opened for him nas the "Add button function" and the "Delete button funcion" disabled. The buttons exist in the form, but they has no function, no utility. They're disabled.
This is a way I found to solve the problems with permissions. But it's getting hard to go on with it, because forms must be duplicated according to the number of levels the DB has. And the file is getting bigger and bigger.
Maybe there's a way to disable a button depending on a criteria... If so, that would be nice, for it wouldn't be necessary to duplicate forms according to the number of levels. There would be a single form and its buttons would be enabled or disabled, depending on the user logged in. Is this possible?
So, anyone knows another way to configure permissions, without using MS Access default security accounts?
I tried to describe what I need here, but if for some reason I didn't make myself clear, please, ask me about what you didn't understand and I'll try to explain it better, OK?
I appreciate your attention, fellas!
Hugz,
Bruno
Please, anybody knows if there's any way to configure permissions (add, edit, delete records) without using MS Access default Group/Users Security Accounts?
Because of particular reasons, I've created a self login system for a DB of mine, I mean, it has a table with names, passwords and levels of permission and a LOGIN form which appears when the DB is opened. A VBA code verifies the username and password typed in it and lets users have access or not to the DB. Therefore, I'm not using the default security accounts provided by MS Access.
But this operation is causing me some problems with "permissions", for example...
What if I want to allow a "level 2 user" to add records in a form, but not edit or delete any record?
Using the default security accounts (Access) it's possible to do it. But how could I do that without using it?
I tried to create different forms (based on a single one) with buttons Add and Delete enabled or disabled, depending on the level of the user logged in.
For example...
A "level 3 user" can add and edit records, but cannot delete records. So, the form opened for him has the "Delete button function" disabled. The button exists in the form, but it has no function, no utility. It's really disabled. (I could've even removed the button from the form, but I didn't want to.)
Other example...
A "level 4 user" can only "edit" existing records, I mean, he cannot add or remove records. So, the form opened for him nas the "Add button function" and the "Delete button funcion" disabled. The buttons exist in the form, but they has no function, no utility. They're disabled.
This is a way I found to solve the problems with permissions. But it's getting hard to go on with it, because forms must be duplicated according to the number of levels the DB has. And the file is getting bigger and bigger.
Maybe there's a way to disable a button depending on a criteria... If so, that would be nice, for it wouldn't be necessary to duplicate forms according to the number of levels. There would be a single form and its buttons would be enabled or disabled, depending on the user logged in. Is this possible?
So, anyone knows another way to configure permissions, without using MS Access default security accounts?
I tried to describe what I need here, but if for some reason I didn't make myself clear, please, ask me about what you didn't understand and I'll try to explain it better, OK?
I appreciate your attention, fellas!
Hugz,
Bruno