Calculating Time

N

Nikki

Hi,

I would like to be able to calculate time within a
query. For example, what formula would a use to
calculate 8 hours before 10:00:00 PM. 10:00:00PM is a
variable and 8 hours is a constant.

Thanks,
Nikki
 
W

Wayne Morgan

For the field box in the design grid:

EarlierTime:DateAdd("h", -8, [Table1].[Field1])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top