Hi All.
In my form I check duplicate value before save record.
Is it possible to insert Brand value into message box. I tried like this:Code:If DCount("*", "tblBrands", "Brand ='" & !Brand & "'") > 0 Then MsgBox "Brand already exist. Please enter a different Brand.", vbOKOnly SetSaveClose Me, False Exit Sub
But error message:Code:MsgBox "Brand " & txtBrand.Text & " already exist. Please enter a different Brand."
How to fix the problem?
Thanks.