Results 1 to 5 of 5
  1. #1
    Briilee is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2015
    Posts
    1

    Normalizing formatting in Access 2010

    Hi, I've recently gotten tasked with cleaning up in an old database containing employee information. For some reason, the person who made it decided that all entries should be written IN ALL CAPS.


    Therefore I'm looking for an quick way to normalize the data. And apply this to a range of cells. Much like you can use =PROPER(A1) in Excel.
    Thanks in advance!

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Sounds like you are interested in the StrConv() function with the vbProperCase argument

    Code:
    Dim str As String
    
    str = StrConv("ALL CAPS", vbProperCase)
    MsgBox str

  3. #3
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    this query will update all myfields in myTable to propercase

    UPDATE myTable SET myField= StrConv([myField],3)

  4. #4
    IrogSinta is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Jun 2015
    Posts
    103
    There are valid reasons for making all entries for certain fields in caps. For instance, if you are using a linked Oracle table, the fields here are case sensitive. So searching for SMITH will not return the results for Smith or smith. In addition, you may have various people entering data in their own preference so while some may type in John Smith, others may just put in john smith, JOHN SMITH, John SMITH. Forcing them into caps in the table makes it easier to find a string. Then for display purposes on forms or reports, you can just use the StrConv function. Now if you are just using Access tables, which are not case sensitive, then this is not an issue.

  5. #5
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    if you are using a linked Oracle table, the fields here are case sensitive
    good catch!

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

Similar Threads

  1. Replies: 18
    Last Post: 09-24-2014, 02:44 PM
  2. Text formatting grayed out for reports in 2010
    By byterbit in forum Reports
    Replies: 1
    Last Post: 05-12-2014, 02:30 PM
  3. Conditional Formatting on an Access 2010 Report
    By ecalvert47462 in forum Reports
    Replies: 1
    Last Post: 02-18-2014, 12:18 PM
  4. Trouble normalizing data from excel to Access
    By NewUser2Database in forum Database Design
    Replies: 4
    Last Post: 10-20-2013, 02:27 PM
  5. Graph Formatting in Access 2010 Report
    By RayMilhon in forum Reports
    Replies: 13
    Last Post: 03-16-2012, 05:23 PM

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