L
Lee
Hi all,
I'm testing a DCount in the Debug window to try and see
why it's not returning the expected values. Here's the
code in the Immediate Window:
DCount
("[CentreNo]", "tbl_InspectionReports", "[InspectionDate]
= #01/05/2004#")
The InspectionDate field within the table is set to a
Date/Time type and I've set it to display in Short Date
format. I've put in 3 records with the above date and 0
is returned. If I replace each of the three records with
26/02/2004 it works fine!!!!??? I've tried putting an
InputMask in the table, I've tried various date formats
so why on earth doesn't it work??!!! I'm going nuts here!
Hope you can help.
Regards,
Lee
I'm testing a DCount in the Debug window to try and see
why it's not returning the expected values. Here's the
code in the Immediate Window:
DCount
("[CentreNo]", "tbl_InspectionReports", "[InspectionDate]
= #01/05/2004#")
The InspectionDate field within the table is set to a
Date/Time type and I've set it to display in Short Date
format. I've put in 3 records with the above date and 0
is returned. If I replace each of the three records with
26/02/2004 it works fine!!!!??? I've tried putting an
InputMask in the table, I've tried various date formats
so why on earth doesn't it work??!!! I'm going nuts here!
Hope you can help.
Regards,
Lee