G
Guest
I'm new to Access and don't have experience w/ database logic nor coding.
1) I have some tables:
I have the PROJECT table with the Project_ID field and others.
I’ve created the PROJECT ACTIVITIES table, containing Project_ID field and
Activities field.
PROJECT table and PROJECT ACTIVITIES table have a one-to-many relationship
made checking the “enforce referential integrity†box.
2) I have a Form
Form is bound to PROJECT table
In the form I’ve created:
An unbound ComboBox (no control source) that uses “Row source type†equal
to Table/Query
and “Row source†equal to SELECT PROJECT.Project_ID, PROJECT.Project_Name
FROM PROJECT ORDER BY [Project_Name];
I’ve added the PROJECT and PROJECT_ACTIVITIES tables to the query builder
(they show the one to many relationship).
3) I’ve created a subform that has the following properties:
Subform “source object†is “activities subform†(created using subform
wizard, choosing PROJECT ACTIVITIES table fields and defining “show <SQL
Statement> for each record in PROJECTâ€)
Subform “link child fields†is “Project_IDâ€
Subform “link master fields†is also “Project_IDâ€
When I click where the rulers meet on the subform datasheet view, there’s
another property box. It is “record source†field and I set it to
SELECT PROJECT_ACTIVITIES.Project_ID, PROJECT_ACTIVITIES.activities,
FROM PROJECT INNER JOIN PROJECT_ACTIVITIES ON PROJECT.Project_ID =
PROJECT_ACTIVITIES.Project_ID;
Still nothing happens when I pick a project in the combobox. The
corresponding activities (I’ve filled out some on the activities table for
testing) don’t show on the subform.
The only way something happens is when I use the record navigator on the
bottom of the form. But that's not my purpose.
I thought that by doing all of the above, I’d have the subform values to
update automatically when I pick a project in the combobox.
What am I missing? I can’t think of anything.
Thank you for your help.
Antonio Machado.
1) I have some tables:
I have the PROJECT table with the Project_ID field and others.
I’ve created the PROJECT ACTIVITIES table, containing Project_ID field and
Activities field.
PROJECT table and PROJECT ACTIVITIES table have a one-to-many relationship
made checking the “enforce referential integrity†box.
2) I have a Form
Form is bound to PROJECT table
In the form I’ve created:
An unbound ComboBox (no control source) that uses “Row source type†equal
to Table/Query
and “Row source†equal to SELECT PROJECT.Project_ID, PROJECT.Project_Name
FROM PROJECT ORDER BY [Project_Name];
I’ve added the PROJECT and PROJECT_ACTIVITIES tables to the query builder
(they show the one to many relationship).
3) I’ve created a subform that has the following properties:
Subform “source object†is “activities subform†(created using subform
wizard, choosing PROJECT ACTIVITIES table fields and defining “show <SQL
Statement> for each record in PROJECTâ€)
Subform “link child fields†is “Project_IDâ€
Subform “link master fields†is also “Project_IDâ€
When I click where the rulers meet on the subform datasheet view, there’s
another property box. It is “record source†field and I set it to
SELECT PROJECT_ACTIVITIES.Project_ID, PROJECT_ACTIVITIES.activities,
FROM PROJECT INNER JOIN PROJECT_ACTIVITIES ON PROJECT.Project_ID =
PROJECT_ACTIVITIES.Project_ID;
Still nothing happens when I pick a project in the combobox. The
corresponding activities (I’ve filled out some on the activities table for
testing) don’t show on the subform.
The only way something happens is when I use the record navigator on the
bottom of the form. But that's not my purpose.
I thought that by doing all of the above, I’d have the subform values to
update automatically when I pick a project in the combobox.
What am I missing? I can’t think of anything.
Thank you for your help.
Antonio Machado.