Ampersand Doesn't Display

K

Kevin Sprinkel

An ampersand in a form label (Font: Arial 12) does not
display, looking more like a truncated underscore. Anyone
know why?
 
N

Nikos Yannacopoulos

Kevin,

That's because the & is an operator (for concatenation) to Access, so unless
you "tell" Access otherwise, it is treated as such.
To make it show in the label, use a double one (&&), which will only show
one on your form.

HTH,
Nikos
 
W

Wayne Morgan

The & is used to make the next character underlined. This underlined
character becomes a quick key to activate that control. For example, if you
typed

Click &Me

The M would be underlined and Ctrl+M would take you to that control. For a
button, it will also activate its OnClick event, I haven't tried it with
other controls. To get the & to display instead of causing the underline,
use 2 of them &&.
 

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