Thank you, I will give this a try - the reason I posted this is I have a front end program that I wrote in VB that accesses data from my database, and I have a login screen that authenticates the user before allowing them access to the program.
What I plan to do now is keep a record of the last four passwords that they have used, and prevent them from setting a new password if it matches one of the four previously used ones. So whenever someone sets a new password, I will use a query to have it check this table to verify that it is doesn't match the four prior passwords. If it does not match, then it will change their password and add this new password to the password history table.
Now that I think about it though, I can probably accomplish the same thing by comparing the new password to the four most recent passwords, without actually deleting the older ones, I'll use something similar to the select statement you have shared with me, minus the part where it would delete any records, to authenticate the new password.
Thanks for your help,
Kevin