Posted on 2002-03-16
i have a database application where there are two types of users
1. normal user that can only read records
1. Administrator that can do anything
Now when the user tries to login in they type in their username and
password and this is checked in a table in my MS Access database with
a list of all the username and passwords in it. If it is then they get
access to the program.
Now what i would like to know is when users are being deleted from the
program there is some sort of verification that makes sure that there
is at least one person left in the access datbase that has admin rights
otherwise no-one would be able to edit and delete records? There is a
field in this table called "Admin" and it has a checkbox with Yes/No.
i am using the standard data control and its called
i also have a variable called IsAdmin which is boolean
Can somebody please tell me how i can do this a sample would be excellent!