Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to set a filter
Message
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Miscellaneous
Thread ID:
00356391
Message ID:
00356402
Views:
23
>I have a situation where i need to be able to set a filter on my form and can't figure out how to do it, newbie that I am.
>
>I have a data combo box of department numbers created from an sql statement in the recordsource property. I also have a listbox of subdepartment numbers created by an sql statement in it's recordsource property. The information in both these objects comes from different tables which share one key field, the department number. I want the listbox of subdepartment numbers to be filtered and to refresh itself based on the department number selected in the data combo box.
>
>Any comments that could point me in the right direction would be appreciated.

In the Change event of your department number combo, repopulate (requery the database) the listbox of subdepartment.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform