Results 1 to 9 of 9
  1. #1
    4 Star Lounger
    Join Date
    May 2001
    Location
    Oxfordshire
    Posts
    456
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Title bar caption (2000)

    When a DB is in use, the title bar (& in the Alt/Tab screen) the name shown has the application name and the open form/report. What bugs me is the way that the form or report name is shown with square bracket ,i.e. My Database - [My open form].

    Is there a simple way of dispensing with these brackets?

  2. #2
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Title bar caption (2000)

    You can use the "Caption" property to show whatever you like in the title bar.

    In the forms Open Event

    <pre>Me.Caption = Date</pre>

    (This will show the current date)

    <pre>Me.Caption = Now</pre>

    (This will shoe the current date and time)

    <pre>Me.Caption = " My Form"</pre>

    (Will show): My Form

    You can set the caption to be of a value from a datasource
    <pre>Me.Caption = [FieldName] & " Result"</pre>

    (FieldName is your datasource, this way you could fill the title bar after a calculation)

    You can set the Caption concatinated:
    <pre> Me.Caption = "This is record " & [RecordID] & " of my table"</pre>


  3. #3
    4 Star Lounger
    Join Date
    May 2001
    Location
    Oxfordshire
    Posts
    456
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Title bar caption (2000)

    Sorry Dave, I didn't explain that very well; I'm just trying to loose the square brackets. Actually displaying whatever text I want I understand.

  4. #4
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Title bar caption (2000)

    Sorry, I'm not sure if you can do that. !

    I'm sure if there's a way, some-one will pick up on the thread.

  5. #5
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Title bar caption (2000)

    Can you post a screen shot of what you're seeing? I don't see that behavior, so maybe I'm looking in the wrong place. Also, have you set the AppTitle property for your application?
    Charlotte

  6. #6
    Bronze Lounger
    Join Date
    Nov 2001
    Location
    Arlington, Virginia, USA
    Posts
    1,394
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Re: Title bar caption (2000)

    Your only "simple" options would be (a) do not maximize form in application window or ([img]/forums/images/smilies/cool.gif[/img] define form as a popup form. If form is not a popup form, if opened in restored window, it will have its own title bar caption that you can set using form's Caption property. But if maximized then you will get the "Microsoft Access - [Name of Form or Caption]" in the application window title bar. Same applies for any other object (table, query, report, etc) opened maximized. If form is a popup form then when opened it will "float" above other open windows, even if maximized, and title bar text will reflect either name of form or caption if set. You can modify the default "Microsoft Access" that appears in application title bar by setting the database AppTitle property using DAO methods, or alternatively using the Windows SetWindowText API function. Neither of these methods, however, will get rid of the brackets when a "child" window, such as a form or the database window, is maximized in the main application window. This behavior is built into many Windows MDI-type applications, for example you'll observe the same behavior when you open a .PDF file in Adobe Acrobat and maximize the document window - the application title bar will read something like "Adobe Acrobat - [SomeDoc.pdf]". Don't think there's any simple way to disable this behavior. Or even a difficult way. So to avoid the brackets I'd ensure the form is opened in a restored window and disable the Maximize button, or use popup forms where practical.

    HTH

  7. #7
    4 Star Lounger
    Join Date
    May 2001
    Location
    Oxfordshire
    Posts
    456
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Title bar caption (2000)

    Thank you all for your replies. I've been away for a couple of days so have only just got back online. The behaviour I wanted to alter can be seen in the attached screen grab. I have seen this done before & hoped to do it myself.

    Hoo hum [img]/forums/images/smilies/smile.gif[/img]
    Attached Images Attached Images

  8. #8
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Title bar caption (2000)

    I think MarkD's reply sums it up: the behavior you see always occurs if you maximize a form or report. There is no "easy" way to change this behavior; not maximizing forms is your best bet...

  9. #9
    4 Star Lounger
    Join Date
    May 2001
    Location
    Oxfordshire
    Posts
    456
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Title bar caption (2000)

    Well I must thank you all for your input & patience with me.

    Many thanks
    Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •