How to use a combo box to filter a forms data

tmd63

Hobbyist relational database creator
Local time
Today, 04:16
Joined
Oct 26, 2016
Messages
22
I have a table that has a Part Number field. I wish to filter a form by using a combo box. I want to have the combo box display the part number of the entry and then filter the item using the part number, adding either <All> and <NEW> to the list to allow selection.
Is this possible? Or do I have to use a separate Part field?
 
You would need an unbound combo.
Use a union query to add your extra values All being 0 Autonumber
Then in the AfterUpdate event of the combo set the filter accordingly.
 
You could start with using the combobox wizard and selecting the third option. I would suggest using two separate buttons to clear the filter (All option) and going to a new record (New option).
 
This solution on my website might be a bit too comprehensive, but it might give you some ideas of how to go about it..

There is a nice little function, which you might be able to employ....

 

Users who are viewing this thread

Back
Top Bottom