Hello all,
A union query counts how many records has a date entry, the second field counts how many records has another date entry.
my query:
I need to do this calculation: Fixed/Found=Result
Can anyone advice please?
A union query counts how many records has a date entry, the second field counts how many records has another date entry.
my query:
Trying to calculate field in union query, but gives me this error:SELECT Sum(Q1.Found) AS SumOfFound, Sum(Q1.Fixed) AS SumOfFixed
FROM (SELECT count([dDateFound]) as Found, '' as Fixed
FROM Q_Defects
WHERE DatePart("m",[dDateFound])=[Forms]![F_MainMenu]![txtMonth]
UNION ALL
SELECT '' as Found, count([dDateClosed]) as Fixed
FROM Q_Defects
WHERE DatePart("m",[dDateClosed])=[Forms]![F_MainMenu]![txtMonth]
) AS Q1;
The Expression is typed incorrectly, or it is too complex to be evaluated. For Example, a numeric expression may contain too many complicated elements. Try simplifying the expression by assigning parts of the expression to vartiables.
I need to do this calculation: Fixed/Found=Result
Can anyone advice please?