I would really need help figuring out how to set a filter on a combobox.
Let me explain my situation:
I have an Access database to manage services provided by a firm.
I’m using 5 tables to manage these services — you can find them attached.
In my form, to insert a new service, I use a combobox called cmbPrestazioni.
Its rowsource is:
SELECT Anagrafica_Prestazioni.ID_Prestazione, Tipo_Macro & ' - ' & Desc_Prestazione AS VoceCompleta
FROM Anagrafica_Prestazioni
ORDER BY Anagrafica_Prestazioni.Tipo_Macro, Anagrafica_Prestazioni.ID_Prestazione;
With 2 columns: 0cm;7cm.
What I would like to achieve is allowing the user to filter the possible results while typing in the combobox.
For example: if the user types “Ass”, I would like the combobox to show all records where either Desc_Prestazione or VoceCompleta contains the consecutive letters “Ass” (case insensitive).
If the user deletes a letter, the filter should update accordingly.
If the combobox is empty, then the rowsource should return to the original unfiltered query.
Can someone help me?