all groups > sql server reporting services > november 2005 >
You're in the

sql server reporting services

group:

Count occurence of a word


Count occurence of a word Hennie
11/8/2005 10:40:03 PM
sql server reporting services:

How can I count the rows in wich a specific word occurs in a field in the
detail row of a report?

Thanks

Re: Count occurence of a word Teo Lachev [MVP]
11/9/2005 7:57:36 AM
There are at least two approaches that come to my mind.

1. Add a caculated field to your dataset that calls a custom VB function
(either embedded in the report or external) which counts the words per row.
Then use the Sum() function to get the overall total.

2. Add a class-level variable to the report embedded code that keeps a
running total. Call a VB function from the field that needs to be counted.

HTH
--
-----------------------------------------------------
Teo Lachev, MVP, MCSD, MCT
Home page and blog: http://www.prologika.com/
-----------------------------------------------------

[quoted text, click to view]

AddThis Social Bookmark Button