P
Paul Malcomson
I'm trying to finish implementing security on my database. I have
secured the .mdb with a .mdw file as per the MS security FAQ with no
problems.
The last part of security that I need to implement is that the first
person to open and log on to the database gets to use the database.
Any subsequent log on users will flip into READ-ONLY mode and won't be
able to modify any data.
All my users belong to a 'full-data-access' group that allows them
enough priv's to run the application. I already have VBE code that
inserts a CURRENT_LOGON record when the Switchboard is opened. This
record is deleted when that user exits the system.
I need some code to perform the following logic:
IF anybody_else_logged_in = true
set database to read-only
(maybe revoke full-data-access group and
grant read-only-access group) to this user
else
insert logged_on record into current_logon table
open switchboard
end
TIA
Paul
secured the .mdb with a .mdw file as per the MS security FAQ with no
problems.
The last part of security that I need to implement is that the first
person to open and log on to the database gets to use the database.
Any subsequent log on users will flip into READ-ONLY mode and won't be
able to modify any data.
All my users belong to a 'full-data-access' group that allows them
enough priv's to run the application. I already have VBE code that
inserts a CURRENT_LOGON record when the Switchboard is opened. This
record is deleted when that user exits the system.
I need some code to perform the following logic:
IF anybody_else_logged_in = true
set database to read-only
(maybe revoke full-data-access group and
grant read-only-access group) to this user
else
insert logged_on record into current_logon table
open switchboard
end
TIA
Paul