Click here to Skip to main content
15,893,508 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
'open the connection
con.Open()
'selecting the student no
With cmd
.CommandText = "SELECT * From " & cmbcourse.Text & " WHERE Student_No=@field1"
.Connection = con
.Parameters.AddWithValue("@field1", mtbstudentno.Text)
.ExecuteNonQuery()
End With
Posted
Updated 17-Mar-14 17:51pm
v2
Comments
Dave Kreskowiak 18-Mar-14 10:03am    
Without seeing more code it's impossible to say what's wrong.

But, why does it feel like you're using the old ADODB stuff from VB6?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900