Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Non-breaking hyphen

Status
Not open for further replies.

ddub

MIS
Joined
Jul 9, 2002
Messages
17
Location
US
Hi,

Does anyone know if it is possible to put in a non-breaking hyphen into a textbox so that text looks like this:

Code:
something something-50,000

instead of this:

Code:
something something -
50,000

Thanks,
ddub
 
Hyphens don't generate breaks. Perhaps you should make the edit control a bit wider?
 
Hi beetee,

That would seem like an option, however, that textbox can contain variable length data and so I won't know when a hyphenated word will occur. Since it's the report that users are having this problem with, I guess I could size the width of the textbox in the form to the same width as the report control so it would be kinda WYSIWYG when they enter text into the form.

I was just thinking Access might have some special key combination like MS Word's Ctrl-Shift-Hyphen to make a non-breaking hyphen.

Thanks for the suggestion though.

ddub

 
Sorry, totally underestimated the problem you were having. There is a rich edit control in the ActiveX set; I don't profess to be an expert in RTF, but it's possible there's some sort of non-breaking hyphen in that format.

Should such a code exist in RTF, you may find you have to detect and insert the code via Visual Basic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top