Change Application Title (1 Viewer)

JohnPapa

Registered User.
Local time
Today, 06:34
Joined
Aug 15, 2010
Messages
954
I thought this would have been a bit easier

I can change the application title using the following only if the Application Title is blank. If it is not blank then it does not change. Anybody knows why?

Code:
Dim db As Database
Set db = CurrentDb()
Dim newtitle
newtitle = "qwerty"
Set newtitle = db.CreateProperty("AppTitle", dbText, strNewTitle)
db.Properties.Append newtitle
Application.RefreshTitleBar
 

spikepl

Eledittingent Beliped
Local time
Today, 05:34
Joined
Nov 3, 2010
Messages
6,142
So what does a function containing "create" in its function name do, you think?
 

JohnPapa

Registered User.
Local time
Today, 06:34
Joined
Aug 15, 2010
Messages
954
Nice one spikepl!!

Was missing the
db.Properties("AppTitle") = "New name"
 

Users who are viewing this thread

Top Bottom