David R
I know a few things...
- Local time
- Today, 17:42
- Joined
- Oct 23, 2001
- Messages
- 2,633
So I got my form working for data entry, it only required 7 tables. One main table (Resources), three lookup tables for the categories (Council District, Patrol Division, Program Focus), and three two-field tables to combine them many-to-many.
My problem now comes in trying to query them for useful data.
Proposition: A user should be able to come along and use three listboxes to specify what Council Districts, what Patrol Divisions, and what Program Focus they want to see. When run the query should bring up just those Resources that match the specified criteria.
I can use simple queries on the join tables to get all records that match any one of these three categories. How do I get SQL to tell me the record numbers for the main table that match something in all three queries? Some sort of DISTINCTROW query?
My problem now comes in trying to query them for useful data.
Proposition: A user should be able to come along and use three listboxes to specify what Council Districts, what Patrol Divisions, and what Program Focus they want to see. When run the query should bring up just those Resources that match the specified criteria.
I can use simple queries on the join tables to get all records that match any one of these three categories. How do I get SQL to tell me the record numbers for the main table that match something in all three queries? Some sort of DISTINCTROW query?