I have these lines of code, how can I join them together?
Controls("toggle" & i).Caption = rs![hex code]
Controls("text" & i).Caption = rs![hex code]
I tried
Controls("toggle" & i).Caption = Controls("text" & i).Caption = rs![hex code]
but then Controls("toggle" & i).Caption control comes up with true, the other one still works ok.