ScrmingWhisprs
I <3 Coffee Milk.
- Local time
- Today, 18:09
- Joined
- Jun 29, 2006
- Messages
- 156
I've been stuck with this problem for a while now. I'm working on a volunteer tracker database. I have a sign in form that when open, stamps the TimeIn field with Time(). The issue is, sometimes we sign in volunteers a little early, so I'm trying to find a way to stamp the TimeIn field with 6:30PM if the current time is BEFORE 6:30PM.
I received the code below from someone, but it didn't work. TimeIn still stamps the the current time when it's before 6:30PM.
All help is appreciated!
Thanks
ScrmingWhisprs
I received the code below from someone, but it didn't work. TimeIn still stamps the the current time when it's before 6:30PM.
Code:
Private Sub Form_BeforeUpdate(Cancel As Integer)
Dim TimeIn As Date
If Time() < "18:30" Then
TimeIn = "18:30"
Else
TimeIn = Time()
End If
End Sub
All help is appreciated!
Thanks
ScrmingWhisprs