From: RoyS1031 on
I type "Invoices & Orders" in a label on a Swithcboard in design view. When
I go to Form view or even give focus to anything else besides the label, the
ampresand turns to an underline "_". How do I prevent this so the "&"
displays in Form vire?


From: John W. Vinson on
On Sat, 31 Oct 2009 22:02:01 -0700, RoyS1031
<RoyS1031(a)discussions.microsoft.com> wrote:

>I type "Invoices & Orders" in a label on a Swithcboard in design view. When
>I go to Form view or even give focus to anything else besides the label, the
>ampresand turns to an underline "_". How do I prevent this so the "&"
>displays in Form vire?
>

Use &&.

The ampersand character in a Label or Caption indicates that the subsequent
character is a "hotkey" - e.g. a Command Buttion caption containing E&xit
displays with the x underlined, and pressing Alt-X fires the "click" event of
the button. What's happening is that "& " is giving you an underlined blank.

To get a single ampersand, just double the ampersand.
--

John W. Vinson [MVP]
From: RoyS1031 on
John,

Thanks so much. it works great and is so simple.

It feels really humbeling to be able to do some of the deep coding I do then
get hung up on something as simple as this. I guess we all are not as
infallabl as we would like to think.

RoyS1031

"John W. Vinson" wrote:

> On Sat, 31 Oct 2009 22:02:01 -0700, RoyS1031
> <RoyS1031(a)discussions.microsoft.com> wrote:
>
> >I type "Invoices & Orders" in a label on a Swithcboard in design view. When
> >I go to Form view or even give focus to anything else besides the label, the
> >ampresand turns to an underline "_". How do I prevent this so the "&"
> >displays in Form vire?
> >
>
> Use &&.
>
> The ampersand character in a Label or Caption indicates that the subsequent
> character is a "hotkey" - e.g. a Command Buttion caption containing E&xit
> displays with the x underlined, and pressing Alt-X fires the "click" event of
> the button. What's happening is that "& " is giving you an underlined blank.
>
> To get a single ampersand, just double the ampersand.
> --
>
> John W. Vinson [MVP]
> .
>
From: John W. Vinson on
On Sat, 31 Oct 2009 23:15:01 -0700, RoyS1031
<RoyS1031(a)discussions.microsoft.com> wrote:

>I guess we all are not as
>infallabl as we would like to think.

LOL!!!!!

I *hope* the missing e was deliberat.
--

John W. Vinson [MVP]
 | 
Pages: 1
Prev: record in datasheet
Next: ucase on change