Set focus makes the field shaded with black color

  • Thread starter Thread starter Frank Situmorang
  • Start date Start date
F

Frank Situmorang

Hello,

Is it possible to make a set focus color not black? coz it makes not clear
in viewing.
This is my VBA:
Private Sub Form_Open(Cancel As Integer)
NamaJulukan.SetFocus
End Sub

Thansk in advance
 
Frank,

First of all, it wouldn't normally be necessary to use code for this
purpose.

In design view of the form, if you go to the View|Tab Order menu, you
should be able to just set the NamaJulukan control to the top of the
list. (Don't forget to click the 'OK' button after adjusting the tab
order settings!)

Here's an idea to try, see if you like it... Put this code on the Got
Focus event of the NamaJulukan textbox:

Private Sub NamaJulukan_GotFocus()
Me.NamaJulukan.SelLength = 0
End Sub
 
Back
Top