I’m trying to pull in a customer item from another table to match with our item on a subform. Problem #1 – we need the subform to have the ability to add new records, so joining the two tables doesn’t work. Problem #2, if I try a DLookup, it works fine in the subform, but when opening the main form/subform, the field where the customer item number is flashes “#Error” Here’s the lookup:
DLookUp(“CustomerItemNumber”,”T_CustomerItem”,”[CustomerID] = Forms!F_MickeyTest!CustID AND [ItemNumber] = FormsMickeyTest.Item “)
I’m linking the mainform/subform fields as CustID;SalesRep;StartDate. Both the CustID and IItem are text fields that match the CustomerID and ItemNumber. Any suggestions?