Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help using COUNT(*) I need to count records in a table 1

Status
Not open for further replies.

kristy123

MIS
Jun 19, 2001
4
US
I have put a text box on the footer to tell the user the nubmer of records with the condition of "high priority" (that is a combo box on each record).
I don't know how to add the condition of the "high priority".
 
Select count(*) As Cnt
From tbl Where Priority="High"

Or perhaps...

Select count(*) As Cnt
From tbl Where Priority=1

You may even want to use DCount in a text box. Set the control source of the text box to

=DCount("*", "Tbl", "[Priority] = 'High'")
=DCount("*", "Tbl", "[Priority] = 1") Terry

The reason why worry kills more people than work is that more people worry than work. - Robert Frost
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top