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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP! count if

Status
Not open for further replies.

mac3

IS-IT--Management
Dec 11, 2001
4
GB
Hi I have a database with about 250 records in it I need to
count a text in a field and if the text is say "a" I want it to count it but if it says "d" I dont want to count it. What is the easiest way of doing this???
Please save my life and help out or tell me of a good book that might help.

p.s assume I am stupid when explaining.

Thanks squillions.
 
The easiest way would be to use a query. Such as...
select
count(*)
from
[TableName]
where
[FieldName} Is Like "a*"

You may want to do some reading on wild-cards though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top