Results 1 to 4 of 4
  1. #1
    sprovoyeur is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2009
    Posts
    12

    Inch symbol in query filter criteria

    Using Access 2003. Have a string that I need filter on in the query criteria that contains a double quote inch symbol- ie, "15" PVC Pipe". The query fails because it sees the inch symbol as the closing quote. Most of the records in the field that I am filtering on contain this symbol embedded somewhere in the string. Is there a way to get the query to recognize this character so it doesn't think it is the closing quote?
    Thnks very much for any help.

  2. #2
    CGM3 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Atlanta, GA
    Posts
    49
    Try enclosing the text in single quotes: '15" PVC Pipe'

    If you get a query that has both single and double quotes, of course, you're out of luck.

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Or use the Replace function on your field and double the quotes:
    Replace([YourField],","")

  4. #4
    sprovoyeur is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2009
    Posts
    12
    Perfect. Many thanks and much appreciated.


    Quote Originally Posted by CGM3 View Post
    Try enclosing the text in single quotes: '15" PVC Pipe'

    If you get a query that has both single and double quotes, of course, you're out of luck.

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

Similar Threads

  1. Query Criteria
    By Texaine in forum Queries
    Replies: 1
    Last Post: 01-24-2018, 02:36 PM
  2. Criteria or Filter for Query
    By Ryan in forum Queries
    Replies: 1
    Last Post: 08-29-2009, 11:50 PM
  3. Query Criteria
    By MrMitch in forum Queries
    Replies: 0
    Last Post: 03-31-2009, 02:25 PM
  4. Form Based Query/Filter
    By Micon in forum Access
    Replies: 0
    Last Post: 11-07-2008, 09:25 AM
  5. Query Criteria
    By jena in forum Queries
    Replies: 1
    Last Post: 04-29-2008, 11:00 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