Results 1 to 11 of 11

Thread: What is wrong with this?

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2007
    Posts
    35

    Resolved What is wrong with this?

    Code:
            Dim con As New ADODB.Connection
            Dim con_string As String
            Dim sql As String
            Dim rs As New ADODB.Recordset
            con_string = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source = C:\Documents and Settings\leightr\My Documents\culverflex.mdb;"
            con.Open(con_string)
            sql = "delete * from whoishere where userid = " & ComboBox1.Text & ""
            rs = con.Execute(sql)
    I get a Data Mismatch error on: rs = con.Execute(sql)
    Last edited by mousewonders; Sep 8th, 2007 at 07:29 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