create initial grey text in a Textbox which disabled when I write in that textbox

Hamatto

Member
Local time
Today, 14:54
Joined
Jun 17, 2024
Messages
32
Hello friends,
Please, I want to create initial grey text in a Textbox which disabled when I write in that textbox. Is there a property make that or VBA code?
Any help will be appreciated
Thanks a lot
 

Attachments

Format property: @;"(insert text)"
+ Conditional formatting:
1. Has focus: Font ... normal font color
2. Expression: [yourTextbox] Is Null ... font color: grey
 
Thanks a lot

Josef P. and​

arnelgp for replying​

Please , May I ask you to show me what you mean in the attachement file I put?
 
When you say "grey" do you mean make it inactive?

you can do that by setting enabled=false and locked=false, but you can't do that while you are in the text box.
 
When you say "grey" do you mean make it inactive?

you can do that by setting enabled=false and locked=false, but you can't do that while you are in the text box.
Thanks to reply ,but Sorry i didn't mean that my friend
 
Thanks a lot my friends
I understand it .Pardon me for my many inquiries, because I'm almost new to learning Access Have a nice time
 
To be fair, you are attempting things I have never thought of doing, in the few years I have used Access.
Here we calling it 'trying to run, before learning to walk' :)
All this extra code can be omitted, with some little training. When you are using websites, generally no training is available.
 

Users who are viewing this thread

Back
Top Bottom