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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access ADP Application Title Change @ Runtime

Status
Not open for further replies.

roccorocks

Programmer
Nov 26, 2002
248
US
Does anyone have a way to do this? Does not seem to be available through the "Application" properties. Appreciate any help on this.

thanks,

Rocco
 
The following API should do the job (if I;ve understood your requirements correctly):

'API declaration
Public Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal dpString As String) As Long

'Run API call and alter application title
Public Sub adhSetAppTitleAPI(strText As String)

Call SetWindowText(Application.hWndAccessApp, strText)

End Sub

Ed Metcalfe.

Please do not feed the trolls.....
 
Using VBA called from your autoexec macro or elsewhere -

Code:
    CurrentProject.Properties.Add "AppTitle", MYNAMEGOESHERE
    Application.RefreshTitleBar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top