Weird Button Caption Problem

  • Thread starter Thread starter Jasper Jones
  • Start date Start date
J

Jasper Jones

For some reason if I set the text property of a command button to
something like "Mr & Mrs Smith" the end result is a command button with
the caption of "Mr _Mrs Smith". Does anybody know how I can include
the & sign in my command buttons? Is this a bug? Is there a work
around?

Please help, I really need the & symbol to work as I'm reading these
names from a database and it looks daft with the underscore...
 
Jasper Jones said:
For some reason if I set the text property of a command button to
something like "Mr & Mrs Smith" the end result is a command button with
the caption of "Mr _Mrs Smith". Does anybody know how I can include
the & sign in my command buttons? Is this a bug? Is there a work
around?

Replace each single "&" character by two consecutive "&" characters ("&&").
 

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

Back
Top