Gambas Documentation - /comp/gb.db.form/datasource/filter

/comp/gb.db.form/datasource/filter

# DataSource.Filter (gb.db.form)

Property Filter As String

Returns or sets the Filter criteria property. An empty string (the default) accepts everything.

A Filter value acts like the WHERE clause of an SQL statement.

Be sure to use DB.Subst which will properly delimit the filter text for the database being used. Example:

    Datasource.Filter = DB.Subst("Field &1", Text)