A
Aldo
Hi guys,
I am new to MS Access. I am working with Access 2007.
I have some problems while creating a form.
I have created the following tables:
Table "People":
PeopleID FirstName
2 Aldo
Table "Tasks":
TaskID TaskDescription
2 A
3 B
4 C
Table "PeopleTasks":
PeopleTasksID PeopleID TasksID
2 2 3
I have a query named "Get_PeopleTasks" as follows:
SELECT
People.FirstName,
Tasks.TaskDescription
FROM
(People
INNER JOIN PeopleTasks ON People.PeopleID=PeopleTasks.PeopleID)
INNER JOIN Tasks ON PeopleTasks.TaksID=Tasks.TaksID;
Running the query I get the data below:
FirstName TaskDescription
Aldo B
I need to create a form to quickly updating data in those tables, in
example, changing "B" to "C" will also change the value of field " TasksID"
from "3" to "4".
I created a new form based on query "Get_PeopleTasks", changed
TaskDescription as combo box and programmatically set it to show the values
in table "Tasks.TaskDescription" on form load.
When trying to change the value in the combo box (clicking on another
option), I get the change reflected in table "Tasks", so the values in the
table will look that:
TaskID TaskDescription
2 A
3 C
4 C
How can I work it around?
What I am doing wrong?
Thanks in advance for any help,
Aldo.
I am new to MS Access. I am working with Access 2007.
I have some problems while creating a form.
I have created the following tables:
Table "People":
PeopleID FirstName
2 Aldo
Table "Tasks":
TaskID TaskDescription
2 A
3 B
4 C
Table "PeopleTasks":
PeopleTasksID PeopleID TasksID
2 2 3
I have a query named "Get_PeopleTasks" as follows:
SELECT
People.FirstName,
Tasks.TaskDescription
FROM
(People
INNER JOIN PeopleTasks ON People.PeopleID=PeopleTasks.PeopleID)
INNER JOIN Tasks ON PeopleTasks.TaksID=Tasks.TaksID;
Running the query I get the data below:
FirstName TaskDescription
Aldo B
I need to create a form to quickly updating data in those tables, in
example, changing "B" to "C" will also change the value of field " TasksID"
from "3" to "4".
I created a new form based on query "Get_PeopleTasks", changed
TaskDescription as combo box and programmatically set it to show the values
in table "Tasks.TaskDescription" on form load.
When trying to change the value in the combo box (clicking on another
option), I get the change reflected in table "Tasks", so the values in the
table will look that:
TaskID TaskDescription
2 A
3 C
4 C
How can I work it around?
What I am doing wrong?
Thanks in advance for any help,
Aldo.