Aug 1, 2006 #1 roccorocks Programmer Joined Nov 26, 2002 Messages 248 Location 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
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
Aug 1, 2006 #2 Ed2020 Programmer Joined Nov 12, 2001 Messages 1,899 Location GB 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..... Upvote 0 Downvote
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.....
Aug 1, 2006 #3 payback Programmer Joined Jan 14, 2002 Messages 214 Location NZ Using VBA called from your autoexec macro or elsewhere - Code: CurrentProject.Properties.Add "AppTitle", MYNAMEGOESHERE Application.RefreshTitleBar Upvote 0 Downvote
Using VBA called from your autoexec macro or elsewhere - Code: CurrentProject.Properties.Add "AppTitle", MYNAMEGOESHERE Application.RefreshTitleBar