Hi Guys,
I want to build on this if possible - I have an employee table with a list of all the employees needed within the program I am building, but only a certain amount of them need to be able to access the system.
Instead of creating another table with the same data in, I want to use this employee table and add a new password field for the users. Because some of the employees in this table won't be accessing the database, they won't have a password. But that's now a security issue as on the log-on form, you could enter one of these names, leave the password blank, and get access to the system.
I'm thinking along the lines of adding another field to the table, 0 for no access, 1 for access, so I need a hand with altering the SP to take this in account, is it as simple as;
WHERE (Username LIKE @Username) AND (Password LIKE @Password) AND (AccessRights=1)
So if the accessright in the table is 0, then the system will still take the name and the blank password, but fall over on the access rights level?
Thanks for your help
Luke