Hi,
I'm quite a beginner in access/vba/vb code, so please bear with me... Anyways i have forms that have this repeating code
Which are called by the controls enter and exit event, anybody can help me make this a global function/sub which can be called anywhere in any form.
thanks,
ken
I'm quite a beginner in access/vba/vb code, so please bear with me... Anyways i have forms that have this repeating code
Code:
Sub ActiveControl_Enter()
With Me.ActiveControl
.Properties("BorderStyle") = 1
.Properties("BorderWidth") = 2
.Properties("BorderColor") = vbRed
End With
End Sub
Sub ActiveControl_Exit()
With Me.ActiveControl
.Properties("BorderStyle") = 1
.Properties("BorderWidth") = 1
.Properties("BorderColor") = 0
End With
End Sub
Which are called by the controls enter and exit event, anybody can help me make this a global function/sub which can be called anywhere in any form.
thanks,
ken