Report.Find
Find the specified text in the report.
| Syntax | Parameters | Return value |
|---|---|---|
Function Report.Find( _
What As String, _
Optional MatchWholeWord As Boolean, _
Optional MatchCase As Boolean) As Boolean
|
|
Boolean |
SVB Example
Finding text in a report:
Option Base 1
Option Explicit
Sub Main
Dim rpt As Report
Set rpt = ActiveReport
'search for the word "Median" in the active report
Dim FoundWord As Boolean
'search for "Median" where it is a single word
'(i.e., not part of a larger word) and don't make
'it case sensitive
FoundWord = rpt.Find("Median",True,False)
'if "Median" was found, then the variable FoundWord
'will be true
If (FoundWord) Then
MsgBox "Found the word Median in the report"
End If
End Sub