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

Character counts in a string 1

Status
Not open for further replies.

matrun

IS-IT--Management
Jan 13, 2004
26
GB
Can anyone tell me how to count the number of times a character appears in a string, using jet SQL?

Any suggestions welcome!

Thanks

Matt
 
An example:

[tt]SELECT Len([Forename])-Len(Replace([Forename],"a","")) AS [As], tblT.Forename
FROM tblT[/tt]
 
Thanks! Absolutely what I was after. Thanks again!

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top