M
Mick
Hi
Am implementing a password system on a form.
There is a table holding UserNames and Passwords.
I have built a query that takes the contents of a textbox on a form as
a criteria and returns the correct password into a listbox on the
form.
All I now need to do is compare the entered password with the returned
value but if I try to do it directly:
if listboxvalue = passwordvalue then.....
or I read both into string variables and then compare them I get a
null error when trying to read out of the list box.
How do I grab the selected value from a listbox.
Many thanks
Mick
Am implementing a password system on a form.
There is a table holding UserNames and Passwords.
I have built a query that takes the contents of a textbox on a form as
a criteria and returns the correct password into a listbox on the
form.
All I now need to do is compare the entered password with the returned
value but if I try to do it directly:
if listboxvalue = passwordvalue then.....
or I read both into string variables and then compare them I get a
null error when trying to read out of the list box.
How do I grab the selected value from a listbox.
Many thanks
Mick