Is it possible to centre text in a message box when displaying more than one
line in a message?
Thanks
Dave
Well, I've come close by padding the text with spaces, but a better
solution, if this is of importance to you, would be to create your own
unbound form with a label to display your message. Set the label's
Text Align property to Centered. Leave it's caption blank.
You would open the form like this:
DoCmd.OpenForm "MessageFormName", , , , , acDialog, "This is the text
of the message"
Code the Form's Load event:
If Not IsNull(Me.OpenArgs) Then
Me.LabelName.Caption = Me.OpenArgs
End If
This way you could use the same form to display different messages,
depending upon the OpenArgs passed to it.
Add a Command Button to close the form:
DoCmd.Close acForm, Me.Name