G
Guest
I can't get my form to show me the DLookup value. I have an unbound form
with a combo box that looks up the UserNames from table Users. My DLookup is
supposed to show me the value of the [Password] where the [UserName] is the
same as the txtUserName from the form. (UserName is a Lookup value based on
the employee ID, so is actually numerical. So, no enclosing quotes are
necessary.)
Here is the control source property for the Dlookup text box:
=DLookUp("[Password]","Users","[UserName] =" & [Form]![txtUserName])
When a selection is made in the combobox (UserName) the DLookup value is
either blank or there is an error stating that there is a syntax error. I
can't find it. I need a new set of eyes... Can anyone help?
with a combo box that looks up the UserNames from table Users. My DLookup is
supposed to show me the value of the [Password] where the [UserName] is the
same as the txtUserName from the form. (UserName is a Lookup value based on
the employee ID, so is actually numerical. So, no enclosing quotes are
necessary.)
Here is the control source property for the Dlookup text box:
=DLookUp("[Password]","Users","[UserName] =" & [Form]![txtUserName])
When a selection is made in the combobox (UserName) the DLookup value is
either blank or there is an error stating that there is a syntax error. I
can't find it. I need a new set of eyes... Can anyone help?