D
DS
I running this SQL that is giving me a problem.
DateIn and TxtDAdjust are Date fields
TimeIn and TxtTAdjust are Time fields
I know that for date/time fields that you are suppose to use # or '
but I'm not sure where to put them. Any help appreciated.
Thanks
DS
Dim DateInSQL As String
DoCmd.SetWarnings False
DateInSQL = "UPDATE TimeLog SET TimeLog.DateIn =
Forms!AdjustDateTime!TxtDAdjust " & _
"WHERE TimeLog.TimeID=Forms!AdjustDateTime!TxtLog;"
DoCmd.RunSQL (DateInSQL)
DoCmd.SetWarnings True
Dim TimeInSQL As String
DoCmd.SetWarnings False
TimeInSQL = "UPDATE TimeLog SET TimeLog.TimeIn =
Forms!AdjustDateTime!TxtTAdjust " & _
"WHERE TimeLog.TimeID=Forms!AdjustDateTime!TxtLog;"
DoCmd.RunSQL (DateInSQL)
DoCmd.SetWarnings True
DateIn and TxtDAdjust are Date fields
TimeIn and TxtTAdjust are Time fields
I know that for date/time fields that you are suppose to use # or '
but I'm not sure where to put them. Any help appreciated.
Thanks
DS
Dim DateInSQL As String
DoCmd.SetWarnings False
DateInSQL = "UPDATE TimeLog SET TimeLog.DateIn =
Forms!AdjustDateTime!TxtDAdjust " & _
"WHERE TimeLog.TimeID=Forms!AdjustDateTime!TxtLog;"
DoCmd.RunSQL (DateInSQL)
DoCmd.SetWarnings True
Dim TimeInSQL As String
DoCmd.SetWarnings False
TimeInSQL = "UPDATE TimeLog SET TimeLog.TimeIn =
Forms!AdjustDateTime!TxtTAdjust " & _
"WHERE TimeLog.TimeID=Forms!AdjustDateTime!TxtLog;"
DoCmd.RunSQL (DateInSQL)
DoCmd.SetWarnings True