Results 1 to 3 of 3
  1. #1
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936

    Getting the Quotes right

    I just can't seem to get the correct quotes in the right sequence.

    I want to replace all single quotes with nothing (remove them).
    Replace(NotesStr, "'", "")

    Except that this is nestled inside a DoCmd.RunSQL - my table name is different each time, so I can't make a permanent query.
    "UPDATE.....Replace(NotesStr, "'", "")...."

    Anyone know how to figure this out?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Replace(NotesStr, Chr(39), '')
    or
    Replace(NotesStr, '''', '')
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Oh yes, forgot about those ascii characters. Thanks.

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

Similar Threads

  1. New Database on Customer Quotes
    By rkalapura in forum Access
    Replies: 2
    Last Post: 07-13-2012, 07:15 PM
  2. Replies: 7
    Last Post: 03-23-2012, 01:55 PM
  3. Database to produce quotes
    By rossp0203 in forum Database Design
    Replies: 2
    Last Post: 05-26-2011, 10:15 AM
  4. Problems with Recordsets when items contain quotes.
    By caddcop in forum Programming
    Replies: 6
    Last Post: 05-17-2011, 07:49 AM
  5. Remove Quotes within Data Values
    By kfschaefer in forum Programming
    Replies: 0
    Last Post: 02-26-2009, 01:15 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