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!

Counting specific rows in a table

Status
Not open for further replies.

bscs1963

Programmer
Apr 7, 2009
22
US
I am trying to count the number of rows in a table where a certain value is present.

I have a table that is populated and Field3 is a unique vlaue. The value "LI" can be in the table more than once in the same field, and I want to find out how many rows have the value "LI" in the table.

Then I can declare the value and use it later in the code.
 
Thanks!

That was perfect. I was missing the criteria section
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top