> Please post the SQL statement of your query.
>
[quoted text clipped - 19 lines]
> >
> > QB
Try
SELECT Count([dtApproR]) AS [on time]
FROM ([tbl_Plan] INNER JOIN [qry_last approved] ON [tbl_Plan].PlanifIngId =
[qry_Approved].PlanifIngId) INNER JOIN [PARAMETRE] ON [tbl_Plan].ProNo =
[PARAMETRE].[Number]
WHERE [tbl_Plan].dtApproR=[DateApproP]
AND (([Type A]=True AND [Forms]![frm_rpt_Stats Appro et Fab]![Combo0] IN
("A", "A or B"))
OR ([Type B=True AND [Forms]![frm_rpt_Stats Appro et Fab]![Combo0] IN ("B,
"A or B")))
BTW, the fact that you've got fields named Type A and Type B is usually
indicative of the fact that you haven't correctly normalized your tables.
Check some of the resources Jeff Conrad has at
http://www.accessmvp.com/JConrad/accessjunkie/resources.html#DatabaseDesign101
to learn how to correct your design.

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> SELECT Count([dtApproR]) AS [on time]
> FROM ([tbl_Plan] INNER JOIN [qry_last approved] ON [tbl_Plan].PlanifIngId
[quoted text clipped - 29 lines]
>> >
>> > QB
Question Boy - 24 Apr 2008 19:44 GMT
Ya I know. I took over someone else's work and the boss doesn't want me to
spend time fixing such issues. It works, don't touch....
Isn't the first time it creates problems for me. I spent more time working
around it then solving it.
> Try
>
[quoted text clipped - 47 lines]
> >> >
> >> > QB