how to set value for textbox ?

Dlovan-IT

Registered User.
Local time
Today, 10:50
Joined
Oct 9, 2013
Messages
84
i have a login form in access , i want to set the value for the textbox , for example i want to set "Username" appear in the textbox when in click in the textbox clear the textbox like the title in the web it is possible !!
 
You can set the default value of the text box to "Username". Just go into the form in design view and under Properties>Data>DefaultValue write "Username".

I am not 100% sure I understand the latter half of your question but I think you want it to be emptied when entered. So in the On Enter event for the textbox control write something like:

Code:
Me.ControlName=""
 
In the format property of the textbox insert:

@;"Username"
 
thanks so much mr.EternalMyrtle but i don't mean like that


In the format property of the textbox insert:

@;"Username"

oh my god thanks so much exactly that is thing that i want :) but can i use opacity ? lets say i don't want very fuscous it is possible to change opacity !
 

Users who are viewing this thread

Back
Top Bottom