Results 1 to 4 of 4
  1. #1
    kawi6rr is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    39

    Deleting double quotes out of my table?

    I searched and haven't found anything that shows how to do this.

    I had a previous import process that brought int he double quotes from the txt file. I am now trying to clean up the table to get rid of all the doulbe quotes surrounding the "image type" in the imageType field.

    ImageType
    "CT ABD AND PELVIS, 3 PHASE_"
    "CT ABD AND PELVIS, 3 PHASE_"
    "CT ABD AND PELVIS, 3 PHASE_"
    "CT ABD AND PELVIS, 3 PHASE_"
    "CT ABD AND PELVIS, 3 PHASE_"
    "CT ABD AND PELVIS, 3 PHASE_"
    "CT ABD AND PELVIS, 3 PHASE_"
    "CT ABD AND PELVIS, 3 PHASE_"
    "CT ABD AND PELVIS, 3 PHASE_"

    I've tried these two queries but they dont get rid of the double quotes.

    1) UPDATE DI_Image SET DI_Image.ImageType = ""
    WHERE (((DI_Image.ImageType) Like "*" & Chr(34) & "*"));



    2) Replace("Chr(34)", "", "")

    Any help is apprecaited, thanks.

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    If you open the table, highlight the column, and go to "Find and Replace", you can replace the double-quotes with nothing for the whole column at once.
    Just be sure to use the setting "Any part of field" under "Match:".

  3. #3
    Siiig is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    30
    I actually would up being lead to the Replace function for your question. If you take the "Chr(34)" out of quotes...

    Replace([ImageType],Chr(34),"")

    Putting that in quotes means the formula will literally be looking for "Chr(34)" rather than a double quote.

    Try it and let me know.

  4. #4
    kawi6rr is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    39
    Thanks for both responses, I used the find and replace method because it was much easier.

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

Similar Threads

  1. Putting double quotes around text
    By weg220 in forum Queries
    Replies: 5
    Last Post: 12-21-2012, 10:16 AM
  2. Replace double quotes
    By Kay in forum Programming
    Replies: 27
    Last Post: 12-10-2012, 10:04 PM
  3. Inventory -- auto deleting from table
    By jmyers6572 in forum Access
    Replies: 2
    Last Post: 07-27-2012, 05:15 AM
  4. Replies: 11
    Last Post: 12-14-2010, 01:25 PM
  5. Deleting empty columns from a table
    By kapil0712 in forum Programming
    Replies: 3
    Last Post: 05-17-2010, 12:35 AM

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