[AccessD] MsgBox, global setting for Title

Charlotte Foust cfoust at infostatsystems.com
Mon Oct 4 15:03:48 CDT 2004


I think I'm the one missing things!  Somewhere along the way, probably
in the switch from Access Basic to VBA, that seems to have changed.  I
think I would create a messagebox class and have it pass the app title
as the default title to the actual function if I wanted to avoid having
to supply it myself.

Charlotte Foust


-----Original Message-----
From: Gustav Brock [mailto:gustav at cactus.dk] 
Sent: Saturday, October 02, 2004 3:28 AM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] MsgBox, global setting for Title


Hi Charlotte et all

This property didn't exist if this is what you are referring to:

  CurrentProject.Properties("AppTitle")

But adding it and setting its value to "MyTitle" doesn't make any
difference to the default MsgBox title.

/gustav


> Hi Charlotte

> Thanks. The only problem is that it doesn't work ...

> In the debug window:

> ? Currentdb.Properties("AppTitle").Value
> MyTitle

> Still, the title of a messagebox:

>   Msgbox "Test"

> is "Microsoft Access" and not "MyTitle".

> I have done a title bar refresh and even a relaunch with no luck. What

> am I missing?

> /gustav


>> It picks up the AppTitle property as the default.  So if your 
>> AppTitle isn't set, you get Microsoft Access as the msgbox title 
>> unless you override it with a title string argument.

>> Charlotte Foust


>> -----Original Message-----
>> From: Gustav Brock [mailto:gustav at cactus.dk]
>> Sent: Friday, October 01, 2004 11:42 AM
>> To: AccessD at databaseadvisors.com
>> Subject: [AccessD] MsgBox, global setting for Title


>> Hi all

>> Can you somehow set a global string for Title of MsgBox so you don't
>> have to set it each and everywhere?

>> I faintly recall this can be done ... but how?

-- 
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com



More information about the AccessD mailing list