I have a button on contact details form to view director details
I want the button to check
1, check to see if the director is in the database
2, if not ask if you want to add to directors table using form directors
3, if yes add record using the form
4, if no, return
i am using the following code
Dim intChk As Integer
intChk = DCount("*", "directors", "[contact] = '" & Forms!contact_details![contact name] & "'") > 0
but im getting an error
runtime error '3464' data type mismatch in expression
can anyone help me this codeing please