Results 1 to 3 of 3
  1. #1
    mcmcd99 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Posts
    65

    How do I convert all fields to CAPS?


    I have a database where many different people enter data. For the sake of consistency, I would like to convert all information in the table to CAPS. I would also like to ensure that all data entered hereforth is automatically converted to CAPS. Anyone have any suggestions please?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    I use VBA in AfterUpdate event of textbox or combobox. Example:

    Private Sub tbxFieldPL_AfterUpdate()
    Me.tbxFieldPL = UCase(Me.tbxFieldPL)
    End Sub

    You will have to run an UPDATE query on the existing records.

    UPDATE tablename SET field1=UCase(field1), field2=UCase(field2);

    Otherwise, just use formatting in forms and reports to show all caps without actually altering the data.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    mcmcd99 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Posts
    65
    Wonderful, thank you! I will try that here in a few minutes and let you know how it works.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 10-17-2016, 06:19 PM
  2. I want fill in boxes all Caps
    By MarkV in forum Access
    Replies: 3
    Last Post: 12-07-2014, 06:35 PM
  3. How to make all caps for a text box
    By data808 in forum Forms
    Replies: 16
    Last Post: 05-14-2014, 08:00 PM
  4. How to Set Font to Small Caps using VBA
    By EddieN1 in forum Access
    Replies: 3
    Last Post: 04-11-2014, 05:39 AM
  5. Convert VALUE in Textbox to CAPS in TABLE
    By taimysho0 in forum Programming
    Replies: 3
    Last Post: 12-30-2011, 05:04 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums