V
vavroom
I'm having real trouble making this DLookup work properly. I suspect
I'm not getting the right combination of single quotes and double
quotes and ampersands...
I have one unbound textbox and two unbound combo boxes on a form. On
the After Update event of the second combo box, I want to lookup the
value of one field in a table, based on the values of both combo boxes.
In the After Update event, I have:
Me.txtEmail = DLookup(fldEmail, tblSendTo, "[fldCollege] = " & _
Forms![TESTEXPORT]![cmbCollege]& " AND [fldLocation] = " & _
Forms![TESTEXPORT]![cmbLocation])
Both combo boxes are keeping a numeric value.
I've tried many different ways to write this, to no avail
Could some kind soul extricate this with me please?
Thanks
I'm not getting the right combination of single quotes and double
quotes and ampersands...
I have one unbound textbox and two unbound combo boxes on a form. On
the After Update event of the second combo box, I want to lookup the
value of one field in a table, based on the values of both combo boxes.
In the After Update event, I have:
Me.txtEmail = DLookup(fldEmail, tblSendTo, "[fldCollege] = " & _
Forms![TESTEXPORT]![cmbCollege]& " AND [fldLocation] = " & _
Forms![TESTEXPORT]![cmbLocation])
Both combo boxes are keeping a numeric value.
I've tried many different ways to write this, to no avail
Could some kind soul extricate this with me please?
Thanks