query criteria

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to create a button on a form which runs a query. This query
needs to be based upon a field from a form that the button is to be on, so
that when the query runs, only records relating to this one field are shown.
 
I assume you know how to run the query from the button click
DoCmd.OpenQuery etc.

In the criteria row of the columns in your query you can refer to fields on
your form like this
[Forms]![FormName]![FieldName]
 
Back
Top