J
jonny
Option Explicit
Private mdTarget1 As Date
Private mdTarget2 As Date
' called on form load
Public Sub SetRecordStartTime()
mdTarget1 = DateAdd("n", 60, Time)
mdTarget2 = DateAdd("n", 120, Time)
End Sub
' I am using then using a if statement like "If Time > mdTarget1 And
Time < mdTarget2 Then"
Everything is working until after 12 midnight and then it returns for
example something like "10/10/07 12:00:00 AM" .
Can you help me do the following:
1st: Covert time to army time (1-24);
2nd: Only show the time and not the date or am/pm;
Your help would be greatly appreciated!!!
Private mdTarget1 As Date
Private mdTarget2 As Date
' called on form load
Public Sub SetRecordStartTime()
mdTarget1 = DateAdd("n", 60, Time)
mdTarget2 = DateAdd("n", 120, Time)
End Sub
' I am using then using a if statement like "If Time > mdTarget1 And
Time < mdTarget2 Then"
Everything is working until after 12 midnight and then it returns for
example something like "10/10/07 12:00:00 AM" .
Can you help me do the following:
1st: Covert time to army time (1-24);
2nd: Only show the time and not the date or am/pm;
Your help would be greatly appreciated!!!