Linty Fresh
Registered User.
- Local time
- Today, 08:54
- Joined
- Mar 13, 2003
- Messages
- 20
Hi, all
OK, so here's the situation. I'm doing a database for a company. We've got specific departments that can do specific activities. The activities are the same across all departments (i.e.--The activities "Email Notification", "Fund Drives", "Car Washes" apply to the Marketing Department, Accounting Department, and Human Resources Department.).
I want to list each department and the activities the department is participating in.
I've got a main form with the name of the department and a subform with the activities. The datatype of each activity is a yes/no, and I have it formatted as a checkbox on the subform. The tables are linked by a primary key/foreign key 1-to-many relationship.
It looks kind of like this.
Department Name: Accounting
__________________________
Activities:
_ Email Notification
x Fund Drives
_ Car Wash
__________________________
where _ indicates an unchecked checkbox and x indicates a checked checkbox.
My problem is this: I need to create a query that chooses each department along with the selected values while excluding the unselected values so that I can base a report on this. The report might look like:
Department Name: Accounting
Activities:
Fund Drives.
I'm trying to create a query which retrieves these selected values. Am I barking up the wrong tree with yes/no checkboxes or am I just not getting the SQL or query wizard right?
Thanks so much for your help. My department thanks you too!
OK, so here's the situation. I'm doing a database for a company. We've got specific departments that can do specific activities. The activities are the same across all departments (i.e.--The activities "Email Notification", "Fund Drives", "Car Washes" apply to the Marketing Department, Accounting Department, and Human Resources Department.).
I want to list each department and the activities the department is participating in.
I've got a main form with the name of the department and a subform with the activities. The datatype of each activity is a yes/no, and I have it formatted as a checkbox on the subform. The tables are linked by a primary key/foreign key 1-to-many relationship.
It looks kind of like this.
Department Name: Accounting
__________________________
Activities:
_ Email Notification
x Fund Drives
_ Car Wash
__________________________
where _ indicates an unchecked checkbox and x indicates a checked checkbox.
My problem is this: I need to create a query that chooses each department along with the selected values while excluding the unselected values so that I can base a report on this. The report might look like:
Department Name: Accounting
Activities:
Fund Drives.
I'm trying to create a query which retrieves these selected values. Am I barking up the wrong tree with yes/no checkboxes or am I just not getting the SQL or query wizard right?
Thanks so much for your help. My department thanks you too!