A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"&" displays as "_" at form view In access



 
 
Thread Tools Display Modes
  #1  
Old November 1st, 2009, 05:02 AM posted to microsoft.public.access.forms
RoyS1031
external usenet poster
 
Posts: 5
Default "&" displays as "_" at form view In access

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?


  #2  
Old November 1st, 2009, 05:16 AM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default "&" displays as "_" at form view In access

On Sat, 31 Oct 2009 22:02:01 -0700, RoyS1031
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]
  #3  
Old November 1st, 2009, 06:15 AM posted to microsoft.public.access.forms
RoyS1031
external usenet poster
 
Posts: 5
Default "&" displays as "_" at form view In access

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
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]
.

  #4  
Old November 1st, 2009, 09:15 PM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default "&" displays as "_" at form view In access

On Sat, 31 Oct 2009 23:15:01 -0700, RoyS1031
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]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:37 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.