Results 1 to 11 of 11

Thread: VB.NET, MS Access, and parameters [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2003
    Location
    Chicagoland
    Posts
    92

    VB.NET, MS Access, and parameters [RESOLVED]

    This is a duplicate of a thread I started in the DB forum. After thinking about it, I thought I might get more help here as there are more eyes on it.

    So I'm going along, doing a fairly simple project for a software testing group that needs to communicate the defects they find. Basically the Access DB stores the defect number, date, and description. So I have :
    VB Code:
    1. Dim InsertData As String = "INSERT INTO Defects (DefectNumber,  DefectDescription, Date)" _
    2. & "VALUES(" & defectnum & ", '" & TextBox4.Text & "', '" & TextBox3.Text & "');"
    And it works great until someone used a double quote in the description (TextBox4.Text). So someone tells me to use parameters to get around that.

    I bought Microsoft ADO.NET Step by Step and didn't help at all. Most of it's examples were based using SQL Server, not Access, and I understand that there is some difference.

    Any advice on where I can get some helpful information?
    Last edited by shadowfyre; May 21st, 2004 at 01:19 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
  •  



Click Here to Expand Forum to Full Width