S
Stoneface
I'm trying to do a DLookup with four fields, all string values. The following
works when the tblINFO fields are assigned specific values, but gives an
error (#Name?) when using the tblINFO field values:
DlookUp("[tblPARS_FIELD5]", "tblPARS_TEST", "[tblPARS_FIELD1] = '"&
[frmInfo_test]![tblINFO_FIELD1]&"' and [tblPARS_FIELD2] = '"&[frmInfo_test]!
[tblINFO_FIELD2]&"' and [tblPARS_FIELD3] = '"&[frmInfo_test]![tblINFO_FIELD3]
&"' and [tblPARS_FIELD4] = '"&[frmInfo_test]![tblINFO_FIELD4]&"'")
Can anyone help?
Thanks.
works when the tblINFO fields are assigned specific values, but gives an
error (#Name?) when using the tblINFO field values:
DlookUp("[tblPARS_FIELD5]", "tblPARS_TEST", "[tblPARS_FIELD1] = '"&
[frmInfo_test]![tblINFO_FIELD1]&"' and [tblPARS_FIELD2] = '"&[frmInfo_test]!
[tblINFO_FIELD2]&"' and [tblPARS_FIELD3] = '"&[frmInfo_test]![tblINFO_FIELD3]
&"' and [tblPARS_FIELD4] = '"&[frmInfo_test]![tblINFO_FIELD4]&"'")
Can anyone help?
Thanks.