Label on a Form with an & in its caption

R

Rika

Who can explain this funny situation : I try to put a label on a form with a
caption like 'this&that'. I mean, a label containing the &(ampersand) symbol.
When I open the form in Form View I get : 'thisthat' where the "t" from
"that" is underscored and the &(ampersand) is not there anymore.
How can I prevent this conversion from ampersand to the underscoring of the
symbol that follows the ampersand?
Thanks in advance
 
N

Nikos Yannacopoulos

Rika,

The underscore is actually an operator, that's why you get what you do.
To tell Access you just want to display one, you actually need to type
it twice in the label, like 'this&&that'.

HTH,
Nikos
 
W

Wayne Morgan

What you are seeing is correct behavior. The & can be used to create a
"quick key" to that item. I'm sure you've seen the underlined letters in the
menu bar so that if you press Alt+ the letter you will get that menu item.
This is the same thing. If you press Alt+T (assuming this isn't being used
by something already, such as the Tools menu) then you will move the focus
to that control. If it was the caption on a button, pressing the key
combination is the same as clicking the button. To get an & to display,
double it.

Example:
This && That
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top