History |
Filter (database statements)
Purpose
Requeries a record set with an SQL WHERE clause.
The Filter method is a fast, effective way of narrowing the records contained in a record set. Filter can be used on any statement cursor generated with an SQL statement provided that it does not have an SQL WHERE clause.
Filter is the preferred method for searching records in bound table applications.
Syntax
DBStatement.Filter (WHEREClause)
Compliance:
Core level
Example
The following code example filters the Customers table in the data environment by customer name with a text string read off the form.
Sub Click()
Dim filterstr As String
filterstr = "MyCustName Like "' & txtSearchText.Text & "%"'
Customers.Filter(filterstr)
End Sub
| ||||