خطأ ومش عارف أحله بص غي الصورة انا عاف انه من التاريخ datetime بس انا جربت كل اللي موجود على المتندى
من tostring
textمكان value
انا محتار ارجو المساعدة
Dim d1, d2, d3, d4 As String
d1 = "'" & TextBox1.Text & "',"
d2 = "'" & TextBox2.Text & "',"
d3 = "'" & TextBox3.Text & "',"
d4 = "'" & DateTimePicker1.Value & "'"
Dim s As String
s = "insert into mah"
s = s & "(ID,name_machin,num_machin,date)values"
s = s & "(" & d1 & d2 & d3 & d4 & ")"
Dim h As Integer
cmd.CommandText = s
h = cmd.ExecuteNonQuery()
MsgBox(h & "hase ben seyt")