Results 1 to 2 of 2

Thread: Urgent -Not able to update record

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Singapore
    Posts
    59

    Red face

    Hi all,
    I am not able to update a record with the following type.
    Front end VB6.
    Database access.

    Table about company.
    fields. id(number), companyname(text),status(text)

    If I update a record without "'" symbol in the company name field everything works fine.

    But if I give the company name like " ONG'S " in the update state ment it strucks. It is giving some syntax error in the SQL statement.

    Anyone please help me how to over come with this "'" symbol to include in a company name.
    when I hardcode it, I am able to do it.But I am not able to pass this as a parameter.


    With regards,
    Karun

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Angry

    For God's sake man I replied to you in thread:

    http://forums.vb-world.net/showthrea...threadid=14056

    ok so here's the update code:

    strSQL = "UPDATE table1 SET colour1 = " & Quote & Text1.Text & Quote & ";"



    Mark
    -------------------

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