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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top