Guest_imported
New member
- Jan 1, 1970
- 0
Hi
This is my first post so here goes. I wil try and keep this simle.
I have a database made up of people and their favorite fruits.So there is one main table with two fields, names and fruits. The fruits filed is a lookup field, which looks up a fruits table where their is data stored like apple,orange, banana etc
I have designed a form where I can edit or add new people and their favorite fruits. On the form there is a drop down box so that they can choose their fav fruits rather than type in their own (controlled).
Now imagine I my databse has grown to 100`s of users and I want to create some querys that will group by favourite fruit.
I thought of doing this two ways (queries run in form view):-
1. Create separate querys for each fruit, this could get messy as I could have potentially hundreds of queries and forms as there are may diffent types of fruits.
2. Use the [Enter Type of Fruit] option when designing the query, now this causes me a problem as my users cant spell so if they mispell orange then they will have no records found.
So what I would like to do is have a drop down box which is maybe the lookup table, the user selects a fruit, then they would run a query which would use this value and find all people who like what ever fruit waqs selected in the drop down box ? (all run in form view)
I hope that makes sense.
I have tried to the explanation simple.
I would appreciate anyone who can help me out.
BR
Jimmy
This is my first post so here goes. I wil try and keep this simle.
I have a database made up of people and their favorite fruits.So there is one main table with two fields, names and fruits. The fruits filed is a lookup field, which looks up a fruits table where their is data stored like apple,orange, banana etc
I have designed a form where I can edit or add new people and their favorite fruits. On the form there is a drop down box so that they can choose their fav fruits rather than type in their own (controlled).
Now imagine I my databse has grown to 100`s of users and I want to create some querys that will group by favourite fruit.
I thought of doing this two ways (queries run in form view):-
1. Create separate querys for each fruit, this could get messy as I could have potentially hundreds of queries and forms as there are may diffent types of fruits.
2. Use the [Enter Type of Fruit] option when designing the query, now this causes me a problem as my users cant spell so if they mispell orange then they will have no records found.
So what I would like to do is have a drop down box which is maybe the lookup table, the user selects a fruit, then they would run a query which would use this value and find all people who like what ever fruit waqs selected in the drop down box ? (all run in form view)
I hope that makes sense.
I have tried to the explanation simple.
I would appreciate anyone who can help me out.
BR
Jimmy