C
cmdolcet69
I'm trying to use the DateDiff function to calculate the difference
whether a shift has been setup. when i run the code below with
strFirstShiftEnd as a stringor date or datetime. I get an error
Argument Date1 cannot be converted to type Date. an anyone clear this
up.
If DateDiff("n", Format(Now, "hh:mm AMPM"), Format(strFirstShiftEnd,
"hh:mm AMPM")) <= 0 Then
'logout
MsgBox("A shift change has occurred. You will be logged
out now.")
End If
whether a shift has been setup. when i run the code below with
strFirstShiftEnd as a stringor date or datetime. I get an error
Argument Date1 cannot be converted to type Date. an anyone clear this
up.
If DateDiff("n", Format(Now, "hh:mm AMPM"), Format(strFirstShiftEnd,
"hh:mm AMPM")) <= 0 Then
'logout
MsgBox("A shift change has occurred. You will be logged
out now.")
End If