May 20, 2008 #1 matrun IS-IT--Management Joined Jan 13, 2004 Messages 26 Location 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
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
May 20, 2008 1 #2 Remou Technical User Joined Sep 30, 2002 Messages 13,030 Location BE An example: [tt]SELECT Len([Forename])-Len(Replace([Forename],"a","")) AS [As], tblT.Forename FROM tblT[/tt] Upvote 0 Downvote
An example: [tt]SELECT Len([Forename])-Len(Replace([Forename],"a","")) AS [As], tblT.Forename FROM tblT[/tt]
May 20, 2008 Thread starter #3 matrun IS-IT--Management Joined Jan 13, 2004 Messages 26 Location GB Thanks! Absolutely what I was after. Thanks again! Matt Upvote 0 Downvote