Results 1 to 3 of 3

Thread: O'BRIAN fix for SQL

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441
    I know that this has had to come up before. Is there a safe way of determining that a string (like a last name) includes a " ' "? This, I know, will become a problem when logging in employees to my Access 2000 table.

    Any suggestions?
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  2. #2
    Member
    Join Date
    May 2000
    Location
    Canada
    Posts
    52
    Here is a snippit from one of my programs to solve this.

    strCustomerName = Replace(rsCustomers!CustName, "'", "''")
    rsCustomers.Find "CustName = '" & strCustomerName & "'"

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Thank You

    I know it has been awhile, but I finally got to use the code yu supplied and it works great !!! Thanks once again.
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width