I have a form (frmEmployees) with one control (Name) and on it is a subform (subHours) with 4 fields/controls where I can put some data, and one very important field (HoursName). HoursName is set to the default value of the only field on the main form.
My desire is to scroll through our list of employees and enter hours for each one. The subform will contain all the data to save (the employees name and the hours each one worked). I have linked my master/child fields.
The default value of HoursName is set as [Forms]![frmEmployees]![Name]. (I learned from experimenting ! does not equal . in this phrase.)
Anyway, I thought I was having great success. When I open the form, the first employee's name shows up on the main form and in the subform. I enter the hours. It saves to the table. BAM!
Then I use my arrows on my main form to scroll over to the next record, and the second employee name appears correctly on the main and subform. BUT when I dirty the form by typing into any field, the [HoursName] on my sub form changes from the name of the employee to "frmEmployees". And it does this on every record afterwards.
Can someone offer me any tips? (I have already played with different combinations of Enabled and Locked with no success.)
Thanks in advance!!