Hi everyone.
I'm at my first db with access and now I'm facing with a problem I'm not able to solve.
I have an input form (Inserimento nuovi controlli). The data will be added to a table (Anagrafica contribuenti). Before updating the table I need to check that a field (Partita Iva) is not included in that table. To verify this condition I'm using the following code in the form:
Code:
Private Sub pi_LostFocus()
If Not IsNull(Me.pi) Then
If DCount("[Partita Iva]", "Anagrafica contribuenti", "[Partita Iva] ='" & Me.pi & "'") > 0 Then
MsgBox "Partita Iva gią presente"
...
The field in the form (pi) is text, in the table is numeric.
I receive the Runtime error 3464
I can't figure why!
What's the problem?
Thanks.