This is what I have,
Dim strResp As String
strResp = IIf(DCount("*", "Inactive_tbl_ImportMaster", "[Pernr]= " & Forms!frmswitchboard!subfrm!txtPernr.Value) > 0, "Message 1 here.", "Message 2 here.")
MsgBox strResp
and its still giving me a syntax error. I don't get it. Everything is right, I...