N
Nathan
Hi,
I can't seem to this part of my function to work:
Private Function TotalHours(ByVal InTime As Date, ByVal OutTime As Date) As
Double
Msgbox(InTime.Tostring)
Select Case InTime
Case #12:00:00 AM# To #8:00:59 AM#
etc., etc.
Case #8:01:00 AM# To #8:15:59 AM#
etc., etc.
End Select
End Function
The values passed to InTime and OutTime are gathered from a dataset in a
manner like CDate(CurRow("InTime")) where the "InTime" column stores a Date
variable. The messagebox gives: "Nov/08/2004 8:35:42 AM" The Select Case
is passed up completely, that is, none of the Case statements are evaluated
as true.
This function worked before when I had the date stored as a string. Now
that I have changed it to a date, it doesn't work. I'd appreciate any hints
to what might be going wrong.
Thanks,
Nathan
I can't seem to this part of my function to work:
Private Function TotalHours(ByVal InTime As Date, ByVal OutTime As Date) As
Double
Msgbox(InTime.Tostring)
Select Case InTime
Case #12:00:00 AM# To #8:00:59 AM#
etc., etc.
Case #8:01:00 AM# To #8:15:59 AM#
etc., etc.
End Select
End Function
The values passed to InTime and OutTime are gathered from a dataset in a
manner like CDate(CurRow("InTime")) where the "InTime" column stores a Date
variable. The messagebox gives: "Nov/08/2004 8:35:42 AM" The Select Case
is passed up completely, that is, none of the Case statements are evaluated
as true.
This function worked before when I had the date stored as a string. Now
that I have changed it to a date, it doesn't work. I'd appreciate any hints
to what might be going wrong.
Thanks,
Nathan