AccessGuruCarl
Programmer
I'd like to create a module to change the backcolor, forecolor for textboxes on Got/Lost Focus.
Please help with the following Function.
I've alway's stayed away from modules for this reason.
I believe I'm missing the Form Name to make it work.
Here's what I got started,
Thanks...
AccessGuruCarl
Programmers helping programmers
you can't find a better site.
Please help with the following Function.
I've alway's stayed away from modules for this reason.
I believe I'm missing the Form Name to make it work.
Here's what I got started,
Code:
Public Function TextGotFocus(strTextBoxName As String)
On Error Resume Next
With Me.Controls(strTextBoxName)
.BackColor = 11796479 'custom Light Yellow
.SelStart = 0
End With
End Function
AccessGuruCarl
Programmers helping programmers
you can't find a better site.