I have read several threads related to this problem and have tried them all. From DateValue to CDate, to others. None have worked. I need to create a query that will count the number of items that meet certain criteria. This is what I currently have:
SELECT Count(*) AS [#Closed Debt Consolidation]
FROM dbo_SU_Data
WHERE (((dbo_SU_Data.AcctSaved)="No") And ((dbo_SU_Data.ClosedAcct)="Debt Consolidation") And ((dbo_SU_Data.rcdCreateDate) Between 6/27/2011 12:01am And 6/27/2011 11:59pm));
But it only returns the number. I need a column in front of this number that specifies the date only. Everything that I have tried has failed. Any assistance is greatly appreciated. The column name that holds the date/time data is called rcdCreatDate and is a Date/Time field.
Thanks
David V
SELECT Count(*) AS [#Closed Debt Consolidation]
FROM dbo_SU_Data
WHERE (((dbo_SU_Data.AcctSaved)="No") And ((dbo_SU_Data.ClosedAcct)="Debt Consolidation") And ((dbo_SU_Data.rcdCreateDate) Between 6/27/2011 12:01am And 6/27/2011 11:59pm));
But it only returns the number. I need a column in front of this number that specifies the date only. Everything that I have tried has failed. Any assistance is greatly appreciated. The column name that holds the date/time data is called rcdCreatDate and is a Date/Time field.
Thanks
David V