wiklendt
i recommend chocolate
- Local time
- Tomorrow, 06:12
- Joined
- Mar 10, 2008
- Messages
- 1,746
first off, sorry for the delay in my reply - there were mardi gras festivities to attend 
ok, now, yes, if you want to add a combo box or more to filter your listbox you can. for example, you CAN filter by country or by steet, or by minimum age or by anything...
you first need to decide what it is you want to do. i think i'm starting to understand now. you want to see a list, say, of all the clients you have, then, but several combo boxes you want to gradually limit what you're looking at: by, say, country, street name etc... let me know if i'm close.
the first attachment is a specimen database i built for work. it has a listbox and a search feature. you can see in the snapshot that i'm filtering for all records with a "P" in them - i have set up my query to filter on both the name of the specimen and the study that specimen is involved with. however, you can set up the listbox in any way you want.
the second attachment shows you how the query looks that runs the listbox.
finally, the third attachment is a screenshot of another work database i have, which has a listbox but instead of filtering by a textbox, i have filtered using the combobox you see in red as "select study" - this combobox also tell the two buttons to the right of it which data to display/export... also, all the information you see on the right of the listbox, about the chosen specimen, are in subforms. only the chosen specimen's details are displayed on the right, while you still have a list of all those available on the left.
just like the textbox, you need to refer to the combobox in your query to filter the data on the appropriate field. the screenshot i've posted has only the one combobox, but i've filtered on many combos in other databases.
HTH, wiklendt
edit: and like datAdrenaline implied, you can make these combo's work for you in filtering the data you send to a report i have done that many a time also. you can even make several buttons refer to the same physical report, each with their own SQL filters, so i can for example send to the one report via three different buttons either all my negative results, or positive results, or all the results together.

ok, now, yes, if you want to add a combo box or more to filter your listbox you can. for example, you CAN filter by country or by steet, or by minimum age or by anything...
you first need to decide what it is you want to do. i think i'm starting to understand now. you want to see a list, say, of all the clients you have, then, but several combo boxes you want to gradually limit what you're looking at: by, say, country, street name etc... let me know if i'm close.
the first attachment is a specimen database i built for work. it has a listbox and a search feature. you can see in the snapshot that i'm filtering for all records with a "P" in them - i have set up my query to filter on both the name of the specimen and the study that specimen is involved with. however, you can set up the listbox in any way you want.
the second attachment shows you how the query looks that runs the listbox.
finally, the third attachment is a screenshot of another work database i have, which has a listbox but instead of filtering by a textbox, i have filtered using the combobox you see in red as "select study" - this combobox also tell the two buttons to the right of it which data to display/export... also, all the information you see on the right of the listbox, about the chosen specimen, are in subforms. only the chosen specimen's details are displayed on the right, while you still have a list of all those available on the left.
just like the textbox, you need to refer to the combobox in your query to filter the data on the appropriate field. the screenshot i've posted has only the one combobox, but i've filtered on many combos in other databases.
HTH, wiklendt
edit: and like datAdrenaline implied, you can make these combo's work for you in filtering the data you send to a report i have done that many a time also. you can even make several buttons refer to the same physical report, each with their own SQL filters, so i can for example send to the one report via three different buttons either all my negative results, or positive results, or all the results together.
Attachments
Last edited: