If you want to use filters, you can set a new filter for each option in the combobox. If you choose this method you will need to move the record pointer for it to take effect. Here is an example:
&&combo box condition 1
select myGridRecordSource &&Select cursor behind grid
Set filter to condition1
goto top
thisform.refresh()
>> When the user selects a value from the combo box the grid displays the associated records. <<
The easiest way to do this is to create a parameterized view to use as the RecordSource for your grid. Then, you put some code in the Valid() method of the combo boc to REQUERY() the grid's RecordSource using the current value of the combo box as the view parameter.
The on-line help is pretty good on creating parameterized views.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.