Change application name via VB possible ?

R

Rob Hofkens

Hi everyone,

Is it possible to change the application name of a MDB in runtime via VB ?
I know how to set the application name static in the startup settings.
The reason I want to do this, is that I like to add the Users name next to
it when the application is going through the startup function.

Thanks in advance,

Rob.
 
D

Douglas J. Steele

If you've already set the name (through the Tools | Startup option), you can
change it as:

CurrentDb().Properties("AppTitle") = "New title"
Application.RefreshTitleBar

If you haven't already set the name, you'll have to create the AppTitle
property first, using the CreateProperty method.
 
R

Rob Hofkens

Thank you :)

Rob.

Douglas J. Steele said:
If you've already set the name (through the Tools | Startup option), you
can change it as:

CurrentDb().Properties("AppTitle") = "New title"
Application.RefreshTitleBar

If you haven't already set the name, you'll have to create the AppTitle
property first, using the CreateProperty method.
 
Top