J
jskernahan
Hi, I've got a problem that i've been trying to solve for quite some
time now and I can't figure it out. I'm using a DCount function in a
query to count the number of records in a table relating to a
displayed date. the SQL looks like this:
SELECT ProductionReport_Summary.Date,
DCount("UWI","FacilityData","Est_TieIn=#" & [Date] & "#") AS
TieInCount
FROM ProductionReport_Summary
WHERE (((Year([Date]))>=Year(Date())));
I am able to run the query and no errors come up, but the DCount is
returning the wrong count!! it's very frustrating. For example, the
DCount will return a count of 0 when the [Date] field = #01-Sep-08#
BUT when i go into the query and type in:
SELECT ProductionReport_Summary.Date,
DCount("UWI","FacilityData","Est_TieIn=#01-Sep-08#") AS TieInCount
FROM ProductionReport_Summary
WHERE (((Year([Date]))>=Year(Date())));
it returns the proper value. WHAT IS GOING ON?!?!
time now and I can't figure it out. I'm using a DCount function in a
query to count the number of records in a table relating to a
displayed date. the SQL looks like this:
SELECT ProductionReport_Summary.Date,
DCount("UWI","FacilityData","Est_TieIn=#" & [Date] & "#") AS
TieInCount
FROM ProductionReport_Summary
WHERE (((Year([Date]))>=Year(Date())));
I am able to run the query and no errors come up, but the DCount is
returning the wrong count!! it's very frustrating. For example, the
DCount will return a count of 0 when the [Date] field = #01-Sep-08#
BUT when i go into the query and type in:
SELECT ProductionReport_Summary.Date,
DCount("UWI","FacilityData","Est_TieIn=#01-Sep-08#") AS TieInCount
FROM ProductionReport_Summary
WHERE (((Year([Date]))>=Year(Date())));
it returns the proper value. WHAT IS GOING ON?!?!