I'm trying to display messages depending on the time of day. I know that everyone has seen the usual examples of "Good Morning" and the like, but I'm looking for something a little more complicated. For example, I want to display one message if the time is between 9:35 am and 4:15 pm. I originally tried something like:<BR><BR>If hour(time) >= 9 And minute(time) > 35 Or hour(time) =< 4 And minute(time) < 15 Then<BR><BR>But the obvious problem is that something like that does not incorporate times such as 10:15 am, etc.<BR><BR>Is there a function similar to datediff() that can be used for times, or can anyone help me with something that will accomplish what I'm looking to do? Thanks!!!