Assuming b0
is a textbox, the error you are getting is due to the fact that you can't use it's Text
property when said textbox hasn't got the focus.
As stated in MSDN, «While the control has the focus, the Text property contains the text data currently in the control; the Value property contains the last saved data for the control. When you move the focus to another control, the control's data is updated, and the Value property is set to this new value. The Text property setting is then unavailable until the control gets the focus again» (emphasis mine).
Try using Value
(help here) instead:
b0.Value = rsNames![Associate]