Hello,
I have a form that has a lot of textboxes on it. I have two Public Subs (cOn and cOff) that when the control in On Enter it highlights the control and bolds the label and On Exit turns that control back to normal.
My question is rather than going through each control on the form and setting the On Enter to Call cOn and the On Exit to cOff, is there a way that can be written in VBA for all the controls on the form.
On other piece i am trying to figure out is not all my contols have a label so when i access the Public sub throws in error.
me.ActiveControl.Controls.Item(0).FontBold = True
Thanks for the suggestions!
I have a form that has a lot of textboxes on it. I have two Public Subs (cOn and cOff) that when the control in On Enter it highlights the control and bolds the label and On Exit turns that control back to normal.
My question is rather than going through each control on the form and setting the On Enter to Call cOn and the On Exit to cOff, is there a way that can be written in VBA for all the controls on the form.
On other piece i am trying to figure out is not all my contols have a label so when i access the Public sub throws in error.
me.ActiveControl.Controls.Item(0).FontBold = True
Thanks for the suggestions!