• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

4. Applications > 4.7. Change and Reset the Access Caption Bar

4.7. Change and Reset the Access Caption Bar

Problem

You’d like to be able to change the caption of the main Access window as part of your application. Of course, you need to be able to reset it back to its original value when you’re done. You’ve found the AppTitle property in Access, but you just can’t get it to work. Is there some simple way to retrieve and set the Access caption, as you can with any of the windows within Access?

Solution

This is one situation where it’s simpler to use the Windows API than it is to use the built-in functionality. Although Access does support a property of the current database, AppTitle, that you can use to set and retrieve the Access titlebar, it’s clumsy to use because AppTitle is a user-defined property. If the property doesn’t yet exist in a database, you must create it. With the Windows API, retrieving and setting the Access caption both require just a few predictable steps, and neither process is terribly difficult. This solution demonstrates the steps to set and retrieve the Access caption with the Windows API. The AppTitle property is discussed in


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint