Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim strquery As String = "Insert Into Images (PatientID,Image,ImageNumber) VALUES ('patient0050','patient00501.JPG','1')" Dim con As New OleDbConnection(objclsvariable.constr) Dim cmd As New OleDbCommand(strquery, con) con.Open() Try cmd.ExecuteNonQuery() Catch ex As Exception MessageBox.Show(ex.ToString) End Try con.Close() End Sub
Dim strquery As String = "Insert Into Images (PatientID,[Image],ImageNumber) VALUES ('patient0050','patient00501.JPG','1')"
Dim strquery As String = "Insert Into [Images] (PatientID,Image,ImageNumber) VALUES ('patient0050','patient00501.JPG','1')"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)