Changes

Jump to: navigation, search

Using Wildcard Criteria in Reports

213 bytes added, 16:12, 30 August 2013
no edit summary
{{SeqReportPageHeader}}
 
A [[Wildcard|wildcard]] character is used in criteria to replace one or more unknown characters in the field. For example, if you need to display only names beginning with the letter “A”, then you would need to use a [[Wildcard|wildcard]].
* '''Like''' - the "like" operator is used to retrieve values for a field, where a comparison is made between the value specified, and the value for that field in the database. For example: '''Like 'A%''''. The percent sign - % matches any number of characters. It can be used in any position in the character string. Like ''''miss%ga''''.
* '''_''' matches a single character. It can be used in any position in the character string. Like 'N_W%’
1. Display the '''[[Report Builder]]''' window.
2. Set the '''criteria''' for the first column to be '''Like ‘A5’<nowiki>'A%'</nowiki>'''.
[[Image:Reps35.png]]
<pre>LIKE concat('%',???,'%')</pre>
[[Image:Reps27.png]]{| border="1" cellpadding="5"|+!Field!!Criteria!!Meaning==Sounds |+|Last Name||Like==You can also use sounds like criteria. This uses the '%son'||Last names ending in the string "son"|+|Last Name||Not Like 'soundex%son'||All last names, '' phonetic algorithm feature.* In the Calculated Field you should enter::'except'soundex([this])''* And those ending in the criteria:string "son"|+:|Title||Like 'VP%'||Titles beginning with the string "VP"|+|Title||=soundex(???)'President'||Titles exactly matching the word "President"|+|City||Like 'N_w%'||Will return "New York", but not "Norwalk"[[File:Soundex.png]]|}
The column with this syntax is not normally displayed in the report, as it will display the soundex phonetic representation of the value rather than the word.
{{PrevNextStart}} [[Setting Text Criteria – Logical Operators in a Report]]
{{PrevNextMid}} [[Using Sounds Like Criteria in Reports]] {{PrevNextEnd}}
[[Category:Reports]][[Category:Criteria]]
8,849
edits

Navigation menu