Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to apply filter to a list box

Status
Not open for further replies.

DeoM

Programmer
Jul 3, 2004
49
PH
Hi,
I have a form for a Work Order Table. It has a list box showing work order records, choose one and the form goes to that record.
When i filter the form to let say State-"California"; i want the list box to also filter out and only show those with California as State. Right now, the form filter is fine but the listbox still shows all records.
Please give me the code/syntax on how to filter the listbox too.
Thanks,
Jun M
 
You have to rebuild on the fly the RowSource property of the listbox with the correct WHERE clause.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top