hello
i have a report that shows closed orders from a query i have, and in the report footer i have a total field with the syntax Count([OrderID]) so that every record in the query is counted to show a total. however if there are no closed orders the field shows #Error and obviously i would rather it just say "0".
i've tried using IIf(Count([OrderID])=0,0,Count([OrderID])) - if counted items = 0, display 0, if not display the actual counted number, but that failed miserably as well.
i assume the idea of using IIf was right, but im stil a newb at this database game!
incidentally, anyone know what the extra I infront of IIf means? just wondering....
dd/mm/yy
i have a report that shows closed orders from a query i have, and in the report footer i have a total field with the syntax Count([OrderID]) so that every record in the query is counted to show a total. however if there are no closed orders the field shows #Error and obviously i would rather it just say "0".
i've tried using IIf(Count([OrderID])=0,0,Count([OrderID])) - if counted items = 0, display 0, if not display the actual counted number, but that failed miserably as well.
i assume the idea of using IIf was right, but im stil a newb at this database game!
incidentally, anyone know what the extra I infront of IIf means? just wondering....
dd/mm/yy