Access Expression using a combo box to complete a text box -
the expression:
=iif(([cbo1]is not null),dlookup("[thing1]","[tbl1]","[cbo1]= " & [forms]![frm1]![cbo1]), "") returns "#error" when try use populate text box based on value of combo box. values in combo box words, setting
=iif([cbo1]>0 in first part creates different error. have expression on different part of form , works fine numerical values.
=iif(([txt1]>0),dlookup("[thing1]","[tbl11]","[thing2]= " & [forms]![frm1]![txt1]),"") what missing on 1 dealing text?
is not null supported in access sql, not in vba expressions. use isnull().
=iif(not isnull([cbo1]), dlookup("[thing1]", "tbl1", "[cbo1]=" & [cbo1]), "") note dlookup expression requires tbl1 includes numeric field named cbo1, same combo box name. correct, looks suspicious me. double-check field name if error.
Comments
Post a Comment