Unbound text box - how to display a light grey text in the box?

TAM

Board Regular
Joined
Oct 10, 2008
Messages
114
I have an unbound box and the user has the ability to enter in either a last name or rep ID. Once the information is entered, we run a macro which applies a filter based on the inputs in the box. I have that part working and am curious.

I've seen forms where there is light grey text in the box to let the user know what they can enter in the search box. Can I do that with ACCESS and if so, please share.

Thanks!!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
It should be just a case of changing the format property. Please supply the name of the unboundbox and either change the caption value of the label.
 
Upvote 0
It should be just a case of changing the format property. Please supply the name of the unboundbox and either change the caption value of the label.

Unbound Box Name is called: Search_Team. I updated the "Datasheet Caption" to say "Enter ID or Name", but it's not displaying that as greyed text within the search box as I had anticipated.
 
Upvote 0
Try this code if not try setting Conditional Formatting.

Private Sub Form_Open(Cancel As Integer)
Me.Search_Team.ForeColor = RGB(206, 192, 192)
Me.Search_Team.Value = "Find me"

End Sub
 
Upvote 0

Forum statistics

Threads
1,221,842
Messages
6,162,333
Members
451,759
Latest member
damav78

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top