السلام عليكم
يظهر لي خطأ في عبارة insert into
مع العلم اني تأكدت من كتابة العباره اكثر من مره فماهي المشكله
هذا هو الكود
Try
Dim SavInto As New OleDb.OleDbCommand
SavInto.Connection = conn
SavInto.CommandType = CommandType.Text
SavInto.CommandText = "INSERT INTO Sales(date,day,code,type,quntity,amount,total)" & _
"values ('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox7.Text & "','" & TextBox4.Text & "','" & TextBox5.Text & "','" & TextBox6.Text & "') "
conn.Open()
SavInto.ExecuteNonQuery()
da1.Update(ds1, "Sales")
conn.Close()
MsgBox("تمت الإضافة")
Catch ex As Exception
conn.Close()
MsgBox(Err.Description, MsgBoxStyle.Critical)
End Try