Hi,
I have a continuous form displaying employee hours for each day. On entry the fields are locked so user has to press edit, mainly to prevent inadvertent changes. When edit is clicked, I set locked property to false and I want the color of the fields (textboxes) to change color to indicate edit mode for that record. The problem occurs when more than one employee is listed....when edit button is clicked all text box colors change and all fields for all records become editable.
I can understand why this might be happening (because the txtboxes are not unique to each record on the form they are referred to by the same name for each record) but not how to achieve what I want to achieve....I only want the colors to change and record to become editable for the current record.
Any thoughts, advice would be very much welcome
Thanks
Lee
I have a continuous form displaying employee hours for each day. On entry the fields are locked so user has to press edit, mainly to prevent inadvertent changes. When edit is clicked, I set locked property to false and I want the color of the fields (textboxes) to change color to indicate edit mode for that record. The problem occurs when more than one employee is listed....when edit button is clicked all text box colors change and all fields for all records become editable.
I can understand why this might be happening (because the txtboxes are not unique to each record on the form they are referred to by the same name for each record) but not how to achieve what I want to achieve....I only want the colors to change and record to become editable for the current record.
Any thoughts, advice would be very much welcome
Thanks
Lee