Dear Everyone
I have a problem with my code kindly examine it and try to find out why I'm getting an error. Thanks.
date_value = cdate(Label2.caption)
Set rsTimekeeping = New Recordset
rsTimekeeping.Open "Select * from Timekeeping where emp_id = '" & Text1.Text & "' and d_InOut = '" & Date_Value & "' and mode = '" & Mode & "' ", Application, adOpenKeyset, adLockOptimistic
----------------------------------------------------------
Error:
Run-time error '-2147217913 (80040e07)':
[Microsoft][ODBC Microsoft Access Driver]Data type mismatch
in criteria expression.
Triplex
I have a problem with my code kindly examine it and try to find out why I'm getting an error. Thanks.
date_value = cdate(Label2.caption)
Set rsTimekeeping = New Recordset
rsTimekeeping.Open "Select * from Timekeeping where emp_id = '" & Text1.Text & "' and d_InOut = '" & Date_Value & "' and mode = '" & Mode & "' ", Application, adOpenKeyset, adLockOptimistic
----------------------------------------------------------
Error:
Run-time error '-2147217913 (80040e07)':
[Microsoft][ODBC Microsoft Access Driver]Data type mismatch
in criteria expression.
Triplex