count records on form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have a form which holds two fields (chk box) recommended and chosen.

the query then filters all records that are recommended for a particular
client. i have then at the foot of the form created a total of recommended,
no problem.

i have also totaled the chosen, but access is counting all records and not
those chosen. i cant use the query as it will filter out the unchosen
records but i still need them.

for example, 5 products recommended and 3 chosen. the foot of the form
should read 5 and 3, but is reading 5 and 5. any help please

and thanks

richard
 
richard harris said:
i have a form which holds two fields (chk box) recommended and chosen.

the query then filters all records that are recommended for a particular
client. i have then at the foot of the form created a total of recommended,
no problem.

i have also totaled the chosen, but access is counting all records and not
those chosen. i cant use the query as it will filter out the unchosen
records but i still need them.

for example, 5 products recommended and 3 chosen. the foot of the form
should read 5 and 3, but is reading 5 and 5. any help please

and thanks

richard

Hi Richard,
you can use the Dcount function: DCount("IDProduct"; "Products";
"Choosen=-1")
Bye
 

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

Back
Top