30-07-17, 11:08 AM
(آخر تعديل لهذه المشاركة : 30-07-17, 11:10 AM {2} بواسطة نبيل كونكت.)
كود :
dt.Columns.Add("تاريخ الصلاحيه")
dgvprodac.Columns(4).Width = DateTimePicker1.Width
DateTimePicker1.Value = Me.dgvprodac.CurrentRow.Cells(4).Value
Using md As New OleDb.OleDbCommand("INSERT INTO [HARAKAT] ([id_item], [item_qty], [price], [IDOLDER], [DATE]) VALUES (@itemid, @qtnitem, @unititem, @idpro, @DAaTE)", con)
md.Parameters.AddWithValue("@DAaTE", r.Cells(4).Value)
raw(4) = DateTimePicker1.Value.ToString