Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ampersand in caption property conversion 1

Status
Not open for further replies.

KeyserSoze

Programmer
May 18, 2000
79
US
I have some code in a form that takes data from an Access table and places it into the caption property of a label object on the form. This data has the ampersand (&) character in it. When the label object is painted onto the screen, the ampersand changes to a underline (_) for hot key operations.

Is there a way to deactivate this feature for a label object? I am using Access 2000.

Thanks!
 
Don't think you can deactivate it, but if you use two (&&) in place of one (&) it will print back in the label as an ampersand and not an underline. It's not a bug, it's a feature...

I wondered why the baseball was getting bigger.
Then it hit me.
 
Thanks for the reply. I was trying to avoid having to change the data.
 
If you have a chance to play with the data you can use the replace function and replace a single & with &&.

I wondered why the baseball was getting bigger.
Then it hit me.
 
The Replace function works like a charm and is a much better alternative. Thanks for your help. You get a star.
 
Very cool!
Thanks!

[cheers]

I wondered why the baseball was getting bigger.
Then it hit me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top