Results 1 to 2 of 2
  1. #1
    usmananyc is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2015
    Posts
    4

    Exclamation Remove all Punctuations, special characters and must be All Caps Query

    Hello Everyone,



    I need some help with an Access Query. I have a very large dataset with customer name, address field, etc that needs to be cleaned up. Some fields are ok but others contain Punctuations (!,.!?/) and some contain special Characters (@#$%&*).

    I basically need a way to clean these all up with just a single space between each and all must be in CAPS. Also if its not too much trouble i also need a way to omit "A, an, the" at the beginning of the customer name.

    Any SQL Query or Macro would be greatly appreciated. Thank you!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    convert to caps with an update query...
    update [field] to UCase ([FIELD] )

    As for the special characters,
    I have a macro, mFixBadChars
    in it is about 6 update queries to correct the field.
    the queries look like:
    UPDATE tData SET [MyMemo] = Replace([MyMemo],"@"," ");
    UPDATE tData SET [MyMemo] = Replace([MyMemo],"!"," ");

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

Similar Threads

  1. Removing special characters
    By crowegreg in forum Queries
    Replies: 3
    Last Post: 02-26-2014, 11:56 AM
  2. Search for special characters
    By davej311 in forum Queries
    Replies: 3
    Last Post: 11-20-2013, 02:35 PM
  3. Need to delete special characters
    By tlrutledge in forum Queries
    Replies: 1
    Last Post: 08-23-2013, 03:10 AM
  4. Special characters in Default Value and Query
    By blacksaibot in forum Queries
    Replies: 1
    Last Post: 03-07-2012, 10:36 AM
  5. Special Characters
    By orgelizer in forum Access
    Replies: 0
    Last Post: 03-20-2007, 08:24 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