I am receiving an error #Name? on a Form when trying to do a lookup from a customerid (perno) field.
I would like to enter a CustomerID on a form, the results after entering the CustomerID would pull the FName & LName from the tblSeniority. However, I am receiving an error. I have inserted 2 unbound text boxes on the form. I have placed the code in the Control Source: =DLookUp("FName",[tblSeniority],"Perno" & [Forms]![frmPending]![txtPerno] & "").
I am using MS Access 2010
Can you take a look at this and give me some direction.
Should I not put it in the control source and do son VBA?
Thank you in advance for all your help!