Hello,
I am trying to lock fields based on the time in a date/time field. I
want them to lock if if they were entered before 7am and then again if
before 7pm. I am not too good at dealing with dates and times in VBA
so I was wondering if anyone here could help me out. Below is my dt
variable being compared to "now" and then locking if greater then an
hour.
If DateDiff("n", dtEnteredOn, Now()) 60& Then
bLock = True
End If
Let me know if you need more information.
Thanks
I am trying to lock fields based on the time in a date/time field. I
want them to lock if if they were entered before 7am and then again if
before 7pm. I am not too good at dealing with dates and times in VBA
so I was wondering if anyone here could help me out. Below is my dt
variable being compared to "now" and then locking if greater then an
hour.
If DateDiff("n", dtEnteredOn, Now()) 60& Then
bLock = True
End If
Let me know if you need more information.
Thanks
Comment