K
Kristin
Main table: Projects with fields for Project Name, Project
Type, Priority, Due Date. Primary key is autonumber called
Project ID
Second table: Employee with fields for Name pieces, email,
etc., where Primary key employee ID is Autonumber.
Because the relationship between employee and project is
many to many, I created a Junction table called
ProjectAssignments contains Project ID, Employee ID, and
Employee role.
I'm now trying to create a main data entry form. The form
will be based on the project, as the list of employees
won't change often and can be done in datasheet view at
this point.
I've designed the project form to contain all of the
necessary descriptive pieces, but I'm now trying to create
a subform that will allow me to set the employees from
that form. Need to be able to assign multiple employees.
I created a subform that has the following
Record Source:
SELECT Employee.Last, ProjectAssignments.Role,
ProjectAssignments.[Project ID] FROM Employee INNER JOIN
ProjectAssignments ON
Employee.EmployeeID=ProjectAssignments.[Employee ID];
This has given two combo boxes on the subform that seem to
allow me to enter multiple individuals. However, when I
attempt to enter employee names, I get a message "Field
cannot be updated". It does let me add the individuals
but updates the employee table, not the Project
Assignments table.
I'd rather have the subform use the "Last" field (or
perhaps the initials field) because I don't know the
employee number.
Also, the role field will not accept entries.
I created the form and subform with a Wizard, which isn't
very helpful, as I'm sure you're aware.
Thanks,
Kristin
Type, Priority, Due Date. Primary key is autonumber called
Project ID
Second table: Employee with fields for Name pieces, email,
etc., where Primary key employee ID is Autonumber.
Because the relationship between employee and project is
many to many, I created a Junction table called
ProjectAssignments contains Project ID, Employee ID, and
Employee role.
I'm now trying to create a main data entry form. The form
will be based on the project, as the list of employees
won't change often and can be done in datasheet view at
this point.
I've designed the project form to contain all of the
necessary descriptive pieces, but I'm now trying to create
a subform that will allow me to set the employees from
that form. Need to be able to assign multiple employees.
I created a subform that has the following
Record Source:
SELECT Employee.Last, ProjectAssignments.Role,
ProjectAssignments.[Project ID] FROM Employee INNER JOIN
ProjectAssignments ON
Employee.EmployeeID=ProjectAssignments.[Employee ID];
This has given two combo boxes on the subform that seem to
allow me to enter multiple individuals. However, when I
attempt to enter employee names, I get a message "Field
cannot be updated". It does let me add the individuals
but updates the employee table, not the Project
Assignments table.
I'd rather have the subform use the "Last" field (or
perhaps the initials field) because I don't know the
employee number.
Also, the role field will not accept entries.
I created the form and subform with a Wizard, which isn't
very helpful, as I'm sure you're aware.
Thanks,
Kristin