Hi,
I often have bound forms or subforms where I need in vba to update the value of one of the fields in the form recordset, although that field does not need to be displayed on the form.
I have always just added a bound control to the form, set it invisible, and then updated the value of the control in the usual way eg. me.ctlFieldX=123. However I have always thought it seems a bit inefficient having an invisible bound control on a form just to do this. Is there a way to update a field in a form recordset without having a bound control? And what is considered best practice?
Thanks!
Jim
I often have bound forms or subforms where I need in vba to update the value of one of the fields in the form recordset, although that field does not need to be displayed on the form.
I have always just added a bound control to the form, set it invisible, and then updated the value of the control in the usual way eg. me.ctlFieldX=123. However I have always thought it seems a bit inefficient having an invisible bound control on a form just to do this. Is there a way to update a field in a form recordset without having a bound control? And what is considered best practice?
Thanks!
Jim