Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting application title on error messagebox

Status
Not open for further replies.

MattBegg

Programmer
Jan 19, 2001
42
CA
I have built a MSAccess application, but in certail circumstances e.g. when a text is entered longer than the allowed length I get a messagebox with MSAccess in the message box's title bar. How can I make my app title the default for this ??

Regards

Matt

matt@begg-uk.co.uk
 
To change it to something specific to the message, such as an abbreviated error message or name of the form with the error, you must trap the error with an error handler or the Form_Error event procedure, and use a MsgBox statement to display the message. The third argument to MsgBox will be displayed as the title.

To change it globally (for messages other than those you issue with MsgBox), click Tools>Startup on the menu and change the Application Title property. Note, however, that this will also change the application name in the main Access window, and within the text of messages. So, for instance, if you change it to "My Application", you might see messages such as "My Application can't find...". Rick Sprague
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top