Count on the page

R

Rodolfo Fontes

Hi group,

I have a report with the following SQL, that list all sold products and
their quantities.
I wanna count them all, sold products, at the final of the page.
The products are already been listed on the page.
For that, i tried , count(ContarDeQtd_NF), and get error message.
Any idea?

SQL:
SELECT Count([T NF_S_Det].Qtd_NF) AS ContarDeQtd_NF, [T NF_S_Det].[Part#F]
FROM [T NF_S_Det]
GROUP BY [T NF_S_Det].[Part#F]
ORDER BY Count([T NF_S_Det].Qtd_NF) DESC;


Tks,
Rodolfo Fontes
 
D

Duane Hookom

Make sure you have your count text box in the report footer, the name of the
text box is not also the name of a field, and you must include the "=" in
the expression:
=Count(ContarDeQtd_NF)
These should also work the same:
=Count(*)
=Sum(1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top