Results 1 to 8 of 8

Thread: [RESOLVED]text box to database

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Location
    Hyderabad, India
    Posts
    233

    Resolved [RESOLVED]text box to database

    Hello,
    When writing a value in a textbox to the database, if there is a single quote as part of the textbox, an error is occuring. I mean if text1.text=vb's then , for writing it to database ,sql we would be something like this:
    " INSERT INTO mytable (name) values ( '" & text1.text & "')".
    This would evaluate to
    "INSERT INTO mytable (name) values ('vb's')".
    So , is there any workaround to include single quotes in the text values to be stored in the database? If yes, how?
    Thank you.
    Last edited by srisa; Apr 11th, 2006 at 05:17 AM. Reason: issue resolved

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