Yes but if the user knows access a little, can't he just get into database window and open the table? And then type new passwords?
i knew you'd come to the rescue)))))))))
i have a problem with that
first of all, how do i make design changes? always keep a backup with nothing disabled?
and whatif the user opens the database holding the shift key? i thought that will open up with the database window?
Another approach that I like to use is to have the DB check to see who is logged into Windows and in effect 'piggy back' off of the windows security to restrict what a user can do within MS Access. This simplifies things because you only maintain a table of logins, not passwords. It also means that users wil not be bothered by login forms as the database will simply recognize them.
<quote>
Function fnGet_userID()
'determine username currently logged into Windows
Dim strUser_ID As String
strUser_ID = Environ("UserName")
fnGet_userID = strUser_ID
End Function
</quote>
Also you an encrypt/decrypt the password so even if they manage to open the table the password will be encrypted an as they do not know the encryption code they cannot change it.
Here's DCrake's example:how is this done????
The way you do that is to not grant any access to tables in SQL Server but create VIEWS instead which you use in your Access database as tables. Then you don't have to expose those. In fact, if you are using SQL Server there is no reason you have to link the password table to Access but instead use Stored Procedures to check the values and return their security level which means that way nothing is exposed.
i'm not even talking about the passwords table anymore. i just realized that if someone knows what they're doing they can just get access to all the tables in the database period