D
default105
I have a listbox 'list6' that contains the values two fields 'MemberID' and
'Username' from a table named 'members'. I also have a button called login
which runs code to evaluate the users password and allows them to login and
store the date in another table to track attendance but I am trying to avoid
duplicate entries per memberID. When the user clicks on their name in the
listbox it automatically places the name in the username textbox on the form.
I would like when the user logs in that it will store the username and not
let the user log in again. I am thinking that I could set up an array for
this purpose and have code to evaluate the name in the username textbox
versus the array and return with a msgbox to tell the user that they have
already logged in for the day. If this is correct, I am having some trouble
fiquring out how to set up the array. Or am I way off base on thinking that
an array would be the answer.
Thanks for the help, you guys offer great information and I am sorry I can
not thank you more formally.
'Username' from a table named 'members'. I also have a button called login
which runs code to evaluate the users password and allows them to login and
store the date in another table to track attendance but I am trying to avoid
duplicate entries per memberID. When the user clicks on their name in the
listbox it automatically places the name in the username textbox on the form.
I would like when the user logs in that it will store the username and not
let the user log in again. I am thinking that I could set up an array for
this purpose and have code to evaluate the name in the username textbox
versus the array and return with a msgbox to tell the user that they have
already logged in for the day. If this is correct, I am having some trouble
fiquring out how to set up the array. Or am I way off base on thinking that
an array would be the answer.
Thanks for the help, you guys offer great information and I am sorry I can
not thank you more formally.