Senin, 02 April 2012

Re: [AccessDevelopers] Re: Make directions disapear when typing.

 

I am curious on how you are putting the directions in the text box. Are you using the default text in the table design for the field or on the form view? 
 
Jim Wagner


From: kitchyuk <andrewkitchinson@gmail.com>
To: AccessDevelopers@yahoogroups.com
Sent: Saturday, March 31, 2012 10:21 AM
Subject: [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