MSGBOX title source is a mystery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shingabiss
    New Member
    • Oct 2006
    • 15

    #1

    MSGBOX title source is a mystery

    Hi All,

    I have a mystery here. The title of the msgbox that appears when I use it says "GetTemps". This is not the message but the text in the colored bar on top; the title. I do know how to change it but am trying to figure out where the heck this is coming from. According to what I've read about the msgbox, it's title, if not explicitly stated, will default to the name of the project. This "GetTemps" is not the name of the form, project or any modules nor is it stated in any of the code or modules. So, where is it getting this from??? I'm going slightly mad at this point!

    Any ideas???
  • MMcCarthy
    Recognized Expert MVP
    • Aug 2006
    • 14387

    #2
    Originally posted by shingabiss
    Hi All,

    I have a mystery here. The title of the msgbox that appears when I use it says "GetTemps". This is not the message but the text in the colored bar on top; the title. I do know how to change it but am trying to figure out where the heck this is coming from. According to what I've read about the msgbox, it's title, if not explicitly stated, will default to the name of the project. This "GetTemps" is not the name of the form, project or any modules nor is it stated in any of the code or modules. So, where is it getting this from??? I'm going slightly mad at this point!

    Any ideas???
    Honestly, I don't know. The syntax for message box creation is as follows:

    MsgBox (prompt, buttons, title, helpfile, context)

    What M$ says about 'title' ...

    Optional. String expression displayed in the title bar of the dialog box. If you omit title, the application name is placed in the title bar.


    This would indicate that "GetTemps" is the name of the database. Access will retain the name that the database was set up with even if you rename the file. To find out open the VBA editor and see what the project name is in the project explorer window.

    Mary

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Originally posted by mmccarthy
      ...This would indicate that "GetTemps" is the name of the database. Access will retain the name that the database was set up with even if you rename the file. To find out open the VBA editor and see what the project name is in the project explorer window.
      You'll have to forgive mmccarthy, she's somewhat fixated on Access. Since this is the VB forum, could you tell us what version of VB you're using? Or is it in fact Access?

      If it's VB6, have you checked the application title on the "Make" tab of Project properties? It's just above where you select the application icon. This is not the same as the Project Name (which is on the General tab).

      Comment

      • MMcCarthy
        Recognized Expert MVP
        • Aug 2006
        • 14387

        #4
        Originally posted by Killer42
        You'll have to forgive mmccarthy, she's somewhat fixated on Access. Since this is the VB forum, could you tell us what version of VB you're using? Or is it in fact Access?

        If it's VB6, have you checked the application title on the "Make" tab of Project properties? It's just above where you select the application icon. This is not the same as the Project Name (which is on the General tab).
        How dare you impugn my .... what are you impugning anyway Killer :D

        Sorry about that. I was flicking back and forth between notifications and didn't realise what forum I was in. Msgbox syntax is the same though? Just the bit about where to find the Database name, right?

        Mary

        Comment

        • Killer42
          Recognized Expert Expert
          • Oct 2006
          • 8429

          #5
          Originally posted by mmccarthy
          How dare you impugn my .... what are you impugning anyway Killer :D

          Sorry about that. I was flicking back and forth between notifications and didn't realise what forum I was in. Msgbox syntax is the same though? Just the bit about where to find the Database name, right?
          Yeah, I was just a bit concerned the reference to "database name" might confuse. Unless of course we are dealing with Access - who knows.

          Comment

          • shingabiss
            New Member
            • Oct 2006
            • 15

            #6
            Originally posted by Killer42
            You'll have to forgive mmccarthy, she's somewhat fixated on Access. Since this is the VB forum, could you tell us what version of VB you're using? Or is it in fact Access?

            If it's VB6, have you checked the application title on the "Make" tab of Project properties? It's just above where you select the application icon. This is not the same as the Project Name (which is on the General tab).
            Wow you hit the nail on the head! Thank a bunch. Also thanks for the other repies as well.

            Comment

            Working...