I'm trying to find out if a record exists. The data to be found will be entered by a InputBox and is numeric.
If DCount("*", "tblFakturen", "Faktuurnr = " & sInputE & "") <> 0 Then
gives typemismatch
If DCount("*", "tblFakturen", "Faktuurnr = '" & sInputE & "'") <> 0 Then
gives type...