How i can track my product status is Out or Resend.
I have create 2 data table, once data table is let the user insert data to database second is track product information the datatable name is call tbl_Info.
this is my program page.
May i ask how i can i create a code can let me tracking my store status is send or resend. which mean is when the user click the send button, on my database will show the status is send.
this is my btnsend code
Dim cmd As New OleDb.OleDbCommandIf Not cnn.State = ConnectionState.Open Then
'open connection if it is not open yet
cnn.Open()
End If
cmd.Connection = cnn
'check whether add new or update
If Me.txtCID.Tag & "" = "" Then
'add new
'add data to mydatatable
cmd.CommandText = "INSERT INTO tbl_Info([checkercid],[LineNo],[Date],[Location],[OtherLocation],[PIC],[OtherPIC],[Reason],[Remarks]) " &
"VALUES('" & dgvData("cbcid", dgvData.CurrentCell.RowIndex).Value & "', '" & Me.txtline.Text & "', '" & Me.DateTimePicker1.Value.ToString("yyyy-MM-dd HH:mm:ss") & "', '" & Me.txtLocation.Text & "', '" & Me.txtOlocation.Text & "','" & Me.txtPIC.Text & "','" & Me.txtOtherPIC.Text & "','" & Me.txtReason.Text &"','" & Me.txtRemarks.Text & "')"
End If
cmd.ExecuteNonQuery()
MsgBox("Add Data Successful", MsgBoxStyle.OkOnly, "Message")
'refresh data in list
RefreshData()
'clear form
Me.btnClear.PerformClick()
'close connection
cnn.Close()