B
blake7
Hi I am using the following select query code, the 'OpenClosed' relates to an
Options Group box with the default set to 1=open 2= closed, the count is
working ok and showing me the number of entries between the two dates i enter
but the count to show open and closed will not show me the result i should be
seeing according to the data in my table, can anyone see where I have gone
wrong ?
Thanks Tony.
SELECT Count(*) AS [Total Entered], Count(IIf([OpenClosed],2,0)) AS [Total
Closed], Count(IIf([OpenClosed],0,1)) AS [Total Open]
FROM [Main Issue Entry Sheet]
WHERE ((([Main Issue Entry Sheet].[Date Reported]) Between [Enter start
date:] And [Enter end date:]));
Options Group box with the default set to 1=open 2= closed, the count is
working ok and showing me the number of entries between the two dates i enter
but the count to show open and closed will not show me the result i should be
seeing according to the data in my table, can anyone see where I have gone
wrong ?
Thanks Tony.
SELECT Count(*) AS [Total Entered], Count(IIf([OpenClosed],2,0)) AS [Total
Closed], Count(IIf([OpenClosed],0,1)) AS [Total Open]
FROM [Main Issue Entry Sheet]
WHERE ((([Main Issue Entry Sheet].[Date Reported]) Between [Enter start
date:] And [Enter end date:]));