I haven't been able to find a non-VBA solution to this problem, but here we go...
There's an employee form that has the person's name & some other info. Within this form is a subform with the training modules the employee has completed & their dates. The main form's & subform's data properties are as follows: Data Entry=no, Allow Additions=yes, Allow Deletions=yes, & Allow Edits=yes. The purpose of this whole setup is so that my users can easily edit an employee's record. So far so good.
Here's where it goes wrong: I have another table (tblUnits) that has a list of the possible work areas (this is a hospital so they're called units). I want to add a combo box to the employee form that lists those units but only for the specific record that you're currently editing. So if I work on the 8th floor, & I am currently editing my own record, just the 8th floor should show up in the combo box.
Here's what I've done: I created a query to base the combo box off of & met with some success. It'll load the appropriate unit for the employee's record you're currently editing, but when I go to change the unit in the combo box to something else, it either doesn't take or only updates one record in my junction table & not all for the same employee.
Adding fields to a form that come from another table is tricky. Do I need to submit my DB?
There's an employee form that has the person's name & some other info. Within this form is a subform with the training modules the employee has completed & their dates. The main form's & subform's data properties are as follows: Data Entry=no, Allow Additions=yes, Allow Deletions=yes, & Allow Edits=yes. The purpose of this whole setup is so that my users can easily edit an employee's record. So far so good.
Here's where it goes wrong: I have another table (tblUnits) that has a list of the possible work areas (this is a hospital so they're called units). I want to add a combo box to the employee form that lists those units but only for the specific record that you're currently editing. So if I work on the 8th floor, & I am currently editing my own record, just the 8th floor should show up in the combo box.
Here's what I've done: I created a query to base the combo box off of & met with some success. It'll load the appropriate unit for the employee's record you're currently editing, but when I go to change the unit in the combo box to something else, it either doesn't take or only updates one record in my junction table & not all for the same employee.
Adding fields to a form that come from another table is tricky. Do I need to submit my DB?