A
AntonioRio
I have a table named PROJECTS that contains data related to projects, such as:
Project_ID (Primary Key)
Project_Name
Phase
Region…………and so on.
I want to:
1) Build a form with a ComboBox where the user will be able to select the
project in this ComboBox
2) Have a subform in datasheet view where users should be able to input
activities for that project (each project has more than one activity) in such
a way that each new activity is automatically saved AND related to the
project selected in the ComboBox.
A) Since I have many activities for each project
- should I build a new table (PROJECTS_ACTIVITIES) containing all the
projects (should I use the field Project_ID or Project_Name?) and its
activities?
- should I make a 1 to “infinite†relationship from table PROJECTS to table
PROJECTS_ACTIVITIES?
- What is the best way to make this new table?
(I was thinking of using a make-table query, using Project_ID instead of
Project_Name. Then I'd use the form’s ComboBox to pick a project and input
activities in the subform. Doing so, I would populate the projects’
activities.)
B) The ComboBox that selects the project shouldn’t be bound to the table, I
just want to use it as a command to choose projects and automatically bring
its activities
- Should this ComboBox be populated through a query?
- Should it be based on PROJECT table or on PROJECT_ACTIVITIES table?
- And Most Important: When I pick a project in this ComboBox, does it
automatically update the subform, relating them to the selected project?
I'm having trouble to code all of this!
Thank you for your time and assistance!
Antônio Machado.
Project_ID (Primary Key)
Project_Name
Phase
Region…………and so on.
I want to:
1) Build a form with a ComboBox where the user will be able to select the
project in this ComboBox
2) Have a subform in datasheet view where users should be able to input
activities for that project (each project has more than one activity) in such
a way that each new activity is automatically saved AND related to the
project selected in the ComboBox.
A) Since I have many activities for each project
- should I build a new table (PROJECTS_ACTIVITIES) containing all the
projects (should I use the field Project_ID or Project_Name?) and its
activities?
- should I make a 1 to “infinite†relationship from table PROJECTS to table
PROJECTS_ACTIVITIES?
- What is the best way to make this new table?
(I was thinking of using a make-table query, using Project_ID instead of
Project_Name. Then I'd use the form’s ComboBox to pick a project and input
activities in the subform. Doing so, I would populate the projects’
activities.)
B) The ComboBox that selects the project shouldn’t be bound to the table, I
just want to use it as a command to choose projects and automatically bring
its activities
- Should this ComboBox be populated through a query?
- Should it be based on PROJECT table or on PROJECT_ACTIVITIES table?
- And Most Important: When I pick a project in this ComboBox, does it
automatically update the subform, relating them to the selected project?
I'm having trouble to code all of this!
Thank you for your time and assistance!
Antônio Machado.