Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataAdapter Example
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
DataAdapter Example
Miscellaneous
Thread ID:
00972709
Message ID:
00972709
Views:
48
Not sure why this insert doesn't work. It doesn't error at all,
yet I get no new record into the products table.
Imports System.Data.OleDb

Module VFPStuff

    Public Sub VFP1()

        Dim connStr As String = "Provider=VFPOLEDB.1;Data Source=" & _
                                "c:\program files\microsoft\vfp8\samples\data\testdata.dbc"
        Dim strSQL As String = "SELECT * FROM Products"
        Dim oda As New OleDbDataAdapter(strSQL, connStr)
        Dim cmdInsert As New OleDbCommand("INSERT INTO Products " & _
                                 "(product_id, prod_name) VALUES ('KEV1','Kevin1')")

        oda.InsertCommand = cmdInsert

        MsgBox("Inserted")

    End Sub

End Module
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform