I have searched and searched these forums but can't find an answer to this. If it's already here somewhere - please point me in the right direction!
I have the following query that works fine until I add the WHERE statement to filter the results by the parameters. Using the WHERE statement below I get no results to my query.
I am trying to only pick members who's start date (FCSD) is less than or equal to the [Enter Start Date] parameter AND who's cancelled date (XLD) is null or greater than the [Enter End Date].
Any help would be appreciated!!
I have the following query that works fine until I add the WHERE statement to filter the results by the parameters. Using the WHERE statement below I get no results to my query.
I am trying to only pick members who's start date (FCSD) is less than or equal to the [Enter Start Date] parameter AND who's cancelled date (XLD) is null or greater than the [Enter End Date].
Code:
PARAMETERS [Enter Start Date] DateTime, [Enter End Date] DateTime;
TRANSFORM Count(qryFCMembers.FullName) AS CountOfFullName
SELECT qryFCMembers.Mtype, Count(qryFCMembers.PID) AS [Total FCMembers]
FROM qryFCMembers
WHERE (((qryFCMembers.FCSD)<=[Enter Start Date]) AND ((qryFCMembers.XLD)>=NZ([Enter Start Date])))
GROUP BY qryFCMembers.Mtype, qryFCMembers.FCSD, qryFCMembers.XLD
PIVOT qryFCMembers.LocW In ("AGR","BB","BTW","FC","FGW","FM","FST","FTG","GB","HP","HPL","KNG","LSM","MIN","NOR","NW","P","PAR","RVW","SAV","SFM","SP","UNC","WDM","WG");
Any help would be appreciated!!