thewiseguy
Registered User.
- Local time
- Today, 23:55
- Joined
- Apr 14, 2004
- Messages
- 56
hi there -
i need to check that details of an order have not already been entered for the inputed IDNumber on the inputed OrderDate. in other words, i want to make sure that details of IDNumber 123456's order cannot be entered for 1/1/01 if an entry for that IDNumber with that date are already in tbl:OrderHistory.
the below code is not working and i'm not advanced enough to see what is wrong.
thanks in advance...
i need to check that details of an order have not already been entered for the inputed IDNumber on the inputed OrderDate. in other words, i want to make sure that details of IDNumber 123456's order cannot be entered for 1/1/01 if an entry for that IDNumber with that date are already in tbl:OrderHistory.
the below code is not working and i'm not advanced enough to see what is wrong.
Code:
If (DCount("*", "tbl:OrderHistory", "[IDNumber] = " & Me.cmbIDNumber And _
"[OrderDate] = #" & Me.txtOrderDate & "#") > 0) Then
thanks in advance...