Assuming you have a Where clause, this condition will check for "between 07:00:00 and 20:00:00 "yesterday" ":
...I'm not entirely sure if DateAdd is apt for this, but it hopefully will be (it is supported by Jet, which I presume is what is used).Code:DateField Between (DateAdd('d', -1, Date) + #7:00:00#) And (DateAdd('d', -1, Date) + #20:00:00#)




Reply With Quote