safeerbinsalih
Registered User.
- Local time
- Today, 18:32
- Joined
- Dec 30, 2015
- Messages
- 26
Error in Dcount criteria
I need to count number of records in a table (tblData_save) with with date field given in criteria. Date field is taken from a form (frmTransaction_input). The code is as follows
temp1 = DCount("*", "tblData_save", "[Enter_date] = #" & Format(Forms!frmTransaction_input.[Enter_date], "dd-mm-yyyy") & "#")
My date format is short date in Indian format dd-mm-yyyy.
Here the count is always returning 0 value. Criteria is not working.
Any help is appreciated
I need to count number of records in a table (tblData_save) with with date field given in criteria. Date field is taken from a form (frmTransaction_input). The code is as follows
temp1 = DCount("*", "tblData_save", "[Enter_date] = #" & Format(Forms!frmTransaction_input.[Enter_date], "dd-mm-yyyy") & "#")
My date format is short date in Indian format dd-mm-yyyy.
Here the count is always returning 0 value. Criteria is not working.
Any help is appreciated