Hello,
Please help me to solve this.
I have a query which calculates sum of pages.
Total Pages: Sum([TASK ID 37])
I have a option button in my FORM wich has two conditions
a) > 11 pages - option button 1
b) <=11 pages - option button 2
in my query i want to display condition 1 if option 1 is selected and vice versa.
below is the query i am trying.
SELECT Query_Tbl_Audit_Data_Filter.EmployeeID AS [Oper #], Sum(nz([TASK ID 37])) AS [Total Pages]
FROM Query_Tbl_Audit_Data_Filter
GROUP BY Query_Tbl_Audit_Data_Filter.EmployeeID
HAVING (((Sum(nz([TASK ID 37])))=IIf([Forms]![Home]![SuffCond]=1,(Sum(nz([TASK ID 37])))>11,(Sum(nz([TASK ID 37])))<=11)));
Regards,
Karthikeyan S