Access line break in button caption

Murray Brown
Murray Brown used Ask the Experts™
on
Hi

In Access how do put a line break in the caption of a button without using VBA?

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
John TsioumprisSoftware & Systems Engineer

Commented:
I don't think there is such a property in Button's captions...
Probably you need to do some padding to mimic the effect.
Murray BrownASP.net/VBA/VSTO Developer

Author

Commented:
Thanks. When you say padding do you mean extra spaces?
Software & Systems Engineer
Commented:
Yes extra spaces.
If you won't to go the extra step...you can "measure" the width of your text (font based) and accordingly to your button's width  make the padding..here is an article on this : https://social.msdn.microsoft.com/Forums/en-US/2727e4a4-57a3-4e4d-a20a-314464579ad3/how-to-calculate-the-width-of-a-access-form-textbox-pending-on-font-and-length-of-characters-string?forum=isvvba
Murray BrownASP.net/VBA/VSTO Developer

Author

Commented:
Thanks very much
Mark EdwardsChief Technology Officer

Commented:
You don't have to pad, just put your cursor where you want the text to break on the face of the button and hold down the Ctrl key, then press the Enter key.  That's how you put in a new line in a button face.
John TsioumprisSoftware & Systems Engineer

Commented:
@Murray ...@Mark has a cool  solution...check his post

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial