20-04-20, 11:25 PM
Dim cmd As New OleDbCommand("insert into employees(cod,name,id,Title,dob,doh,job title)value('" & tc.Text & "','" & tn.Text & "','" & tid.Text & "','" & tt.Text & "','" & td2.Text & "', #" & td1.Value.ToString("yyyy/MM/dd") & " #,'" & tj.Text & "')")
cmd.Connection = con
con.Open()
المشكله هنا cmd.ExecuteNonQuery()
إقتباس :تاتى رساله عنوانها
OleDbException was unhandled
خطأ في بناء جملة INSERT INTO.
con.Close()
MessageBox.Show("تم الادراج بنجاح")
tc.Text = String.Empty
tn.Text = String.Empty
tid.Text = String.Empty
tt.Text = String.Empty
'td1.Value = String.Empty
td2.Text = String.Empty
tj.Text = String.Empty
ارجو الافاده لتفادى الخطاء