Hi,
the normal MsgBox command in Access can only display the built-in buttons, the caption cannot be changed.
The only way of displaying an own messagebox is using a custom form which can be adjusted like you want.
As VBA is able to open a form like a custom class object (a form in Access IS nothing else than that) you can open one and the same form as often as you want. You only cannot use the normal "DoCmd.OpenForm" because in this case the form can only be opened once (which is normally enough for a message). If you want to make sure that different parts of your application are able to display their own message without conflicts with other parts wanting to display their own message you must use the object method instead.
I made a demo database which you can find here:
http://www.office-loesung.
Don't worry about that this is a German forum, there is an attachment in this posting with the demo database which contains a custom "messagebox" by using the explained method.
Cheers,
Christian
Main Topics
Browse All Topics





by: capricorn1Posted on 2009-11-06 at 07:16:51ID: 25759799
yes, that is possible..
you will create a form to mimic the Access Message box.