0

is this possible?

Dim wa As Integer = 1
            con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Bengkel\Project\db.mdb")
            con.Open()

           
            myCommand = New OleDbCommand("insert into payment  (slip) VALUES (wa) ", con)        'insert the value of "wa"

            myCommand.ExecuteNonQuery()
            wa = wa + 1

if i'm wrong, can someone help me?

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by lolafuertes
0

I prefer to write:

myCommand = New OleDbCommand("insert into payment  (slip) VALUES (" & wa.tostring & ") ", con)        'insert the value of "wa"

Hope this helps

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.