How to convert lowercase to uppercase in Access table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BSHELTON
    New Member
    • Jul 2006
    • 2

    How to convert lowercase to uppercase in Access table

    How do I convert existing lowercase data to uppercase in Access 2000? I used the following which did not work?

    UPDATE HousingTowns
    SET tMunis=UPPER(tM unis);

    "HousingTow ns" is the table name.
    "tMunis" is the field name in which the lowercase text is stored in 154 000 rows.

    I get the error message "Undefined function 'UPPER' in expression".
  • comteck
    New Member
    • Jun 2006
    • 179

    #2
    You use the function UCase.

    Example:

    Dim LowerCaseText, UpperCaseText as String
    LowerCaseText = "Hello World 1234" ' String to convert.
    UpperCaseText = UCase(LowerCase Text) ' Returns "HELLO WORLD 1234".

    comteck

    Comment

    • BSHELTON
      New Member
      • Jul 2006
      • 2

      #3
      Many thanks, I will try this. bds

      Comment

      • Bass
        New Member
        • Jul 2007
        • 1

        #4
        Originally posted by BSHELTON
        How do I convert existing lowercase data to uppercase in Access 2000? I used the following which did not work?

        UPDATE HousingTowns
        SET tMunis=UPPER(tM unis);

        "HousingTow ns" is the table name.
        "tMunis" is the field name in which the lowercase text is stored in 154 000 rows.

        I get the error message "Undefined function 'UPPER' in expression".
        ............... ............... ............... ............... ......

        you'll do the statement
        Ucase(fieldname )
        ok...
        Email address removed per site rules!

        Comment

        • missinglinq
          Recognized Expert Specialist
          • Nov 2006
          • 3533

          #5
          Welcome to TheScripts!

          Please note that the posting of email addresses is prohibited on TSDN and if posted will be deleted!

          Linq ;0)>

          Comment

          • zerxiex16
            New Member
            • Oct 2008
            • 1

            #6
            Originally posted by Bass
            ............... ............... ............... ............... ......

            you'll do the statement
            Ucase(fieldname )
            ok...
            Email address removed per site rules!
            excuse me sir.where to put this code Ucase(fieldname ) in access to convert to upercase

            Comment

            • missinglinq
              Recognized Expert Specialist
              • Nov 2006
              • 3533

              #7
              It's usually placed in the AfterUpdate event of the textbox in question:

              Code:
              Private Sub YourTextboxName_AfterUpdate()
                 Me.YourTextboxName = UCase(Me.YourTextboxName)
              End Sub
              Welcome to Bytes!

              Linq ;0)>

              Comment

              Working...