Center text in a MSgBox

  • Thread starter Thread starter accesshacker
  • Start date Start date
A

accesshacker

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

Thanks
 
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.
 
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!!
 
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.
 
Back
Top