J
JMorrell
I've tried, really I have. But just can't get the DLookup funciton to work for me
tables: tblEmp, tblClassCodes
fields in tblClassCodes are: CC (text,6) and Title (text,30
form: frmNewEmp (fed from a query that pulls most fields from tblEmp), is a Data Entry form and has an unbound text box named; boxCC (source code is tblEmp.CC). I want to populate another unbound text box (boxTitle) with a corresponding value from tblClassCodes (tblClassCodes.CC to tblClassCode.Title is 1:1
my function code, in the control source for boxTitle is
=DLookUp("[Title]","[tblClassCodes]","[CC] = '" & Me!boxCC & "'"
when opening the frmNewEmp, field boxTitle = #Name?, and never fills with the corresponding Title from tblClassCode
I've checked spelling, data types, box names, etc. What am I missing here? I'm at my wits end
thanks in advance
tables: tblEmp, tblClassCodes
fields in tblClassCodes are: CC (text,6) and Title (text,30
form: frmNewEmp (fed from a query that pulls most fields from tblEmp), is a Data Entry form and has an unbound text box named; boxCC (source code is tblEmp.CC). I want to populate another unbound text box (boxTitle) with a corresponding value from tblClassCodes (tblClassCodes.CC to tblClassCode.Title is 1:1
my function code, in the control source for boxTitle is
=DLookUp("[Title]","[tblClassCodes]","[CC] = '" & Me!boxCC & "'"
when opening the frmNewEmp, field boxTitle = #Name?, and never fills with the corresponding Title from tblClassCode
I've checked spelling, data types, box names, etc. What am I missing here? I'm at my wits end
thanks in advance