Sabtu, 31 Maret 2012

[AccessDevelopers] Re: Make directions disapear when typing.

 



Hi,

I use the following to automatically select and copy the contents of a text box when it is clicked.

It's not exactly what you are asking for but it might help or give an idea.....

Good luck!

Andy

Private Sub Lastname_Click()
SelectText Me!Lastname
End Sub

Sub SelectText(ctlName As Control)
ctlName.SetFocus
ctlName.SelStart = 0
ctlName.SelLength = Nz(Len(ctlName), 0)
RunCommand acCmdCopy
End Sub

--- In AccessDevelopers@yahoogroups.com, "dwightknotgunn" <backyardautopart@...> wrote:
>
> Hi all. In a textbox I have the words " First Name ? ", next textbox " Last Name ? ". In the click event the box is set to empty. I would like the SetFocus to be here also < Herein lies the problem. I would like the user to start typing without clicking or clearing out the directions.
>

__._,_.___
Recent Activity:

Please zip all files prior to uploading to Files section.
.

__,_._,___

Tidak ada komentar:

Posting Komentar