Center text in a MSgBox

A

accesshacker

Was wondering how I could center the text in a MsgBox that I am putting in my
code.

Thanks
 
D

Daniel Pineault

As far as I know, there is no way to do this using a MsgBox. However, all
you have to do is create your own custom Message box form and then you can
control anything and everything you would like to.
--
Hope this helps,

Daniel Pineault
http://www.cardaconsultants.com/
For Access Tips and Examples: http://www.devhut.net
Please rate this post using the vote buttons if it was helpful.
 
A

accesshacker

Had a feeling that was going to be the answer. I am sure that is also easier
to do in 2007 than in previous versions. Unfortunately, client is on 2003 and
am using their program to develop.

Thank you for the prompt reply!!
 
J

John W. Vinson

Had a feeling that was going to be the answer. I am sure that is also easier
to do in 2007 than in previous versions. Unfortunately, client is on 2003 and
am using their program to develop.

It's not a bit different. Just don't call it a message box, but rather call it
a Popup Form, and it will fall into place.

Just create a small unbound form with a textbox (centered) and open it with
DoCmd.OpenForm rather than MsgBox. You may want to put an "ok" button on the
form to close it.
 

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

Top