thmsjlmnt3953
Registered User.
- Local time
- Today, 14:18
- Joined
- May 20, 2014
- Messages
- 120
Hi,
I'm trying to use DCOUNT to check to see if a date exists and if it does then i can cancel the input.
The code im using is as follows however its returning datatype mismatch.
Any help would be fantastic.
I'm trying to use DCOUNT to check to see if a date exists and if it does then i can cancel the input.
The code im using is as follows however its returning datatype mismatch.
Any help would be fantastic.
Code:
If DCount("[pick_date]", "tblPicker_Stats", "[pick_date] = '" & txtPickDate & "'") > 0 Then
MsgBox "Statistics for this date already exist", vbOKOnly, "Error"
End
End If
Last edited: