Results 1 to 3 of 3
  1. #1
    pharmacologist is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Oct 2019
    Posts
    39

    List of characters that are will not work in SQL string and how to use them


    Is there a compiled list of all the special characters that cannot be used in a SQL string or stored as a value by SQL query and how to use them? I have tables of excel data that include many different symbols and am having a difficult time getting the query to not error out and I think it's due to these characters.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Not aware of such a list. Can you show us one of your problem queries?

  3. #3
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,469
    One trick say for special characters in text fields is using 3 and 4 quotes in stead of the 1 and 2. Like:

    = """ & Me!MyField & """"

    You could also do a Replace function on the field to change special characters if needed to regular text maybe.

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

Similar Threads

  1. Extract characters from the String
    By soldat452002 in forum Access
    Replies: 12
    Last Post: 10-02-2018, 09:31 PM
  2. Get trailing Characters from String
    By jaykappy in forum Queries
    Replies: 4
    Last Post: 09-03-2014, 09:19 AM
  3. Omitting characters from a string
    By TonyB in forum Queries
    Replies: 4
    Last Post: 04-07-2014, 08:03 AM
  4. Characters before searched string
    By cleme1q in forum Access
    Replies: 4
    Last Post: 12-10-2011, 11:22 AM
  5. replace characters in a string
    By blazixinfo@yahoo.com in forum Access
    Replies: 6
    Last Post: 08-06-2009, 03:36 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