Good day everyone! I want to record the time in and time out of an employee using date time picker. Saving the time in is good, but the time out it will not save. I have to buttons labeled Time in and Time out. what I want to do is when I press the time out button I want to record the time of the said employee. I hope someone can help me, I am still searching in the internet but nothing seems to work. Thanks in advance guys!
My code looks like this.
cmd.CommandText = "INSERT INTO timelogTB (Time_Out) select Time_Out from timelogTB WHERE EmpNo= '" & comboxEmpno.Text & "'" & _
"VALUES (@Time_Out)"
'add parameters
With cmd.Parameters
.Add(New SqlParameter("@Time_Out", dtpTime.Value.TimeOfDay))
End With