Hello all:
I have the following fields in a table:
StartTime (date/time datatype)
RampTime (float)
HoldTime (float)
In a query, I am calculating the following:
EndTime: Format(DateAdd("h",[HoldTime],[StartTime]),"Long Time")
This sort of works, except that fractional parts of the HoldTime are truncated and I am not sure how to include my RampTime.
The datatype for EndTime is also Date/time.
HoldTime values can include a fractional component (e.g., 11.25 hours). A ramp time might be .5 hours.
So, lets say based upon the above values that my StartTime is 8:00:00 AM, then my EndTime should be 07:45:00 PM and not 07:00:00 PM, which is what I am getting.
I appreciate any help you can provide,
Ben
I have the following fields in a table:
StartTime (date/time datatype)
RampTime (float)
HoldTime (float)
In a query, I am calculating the following:
EndTime: Format(DateAdd("h",[HoldTime],[StartTime]),"Long Time")
This sort of works, except that fractional parts of the HoldTime are truncated and I am not sure how to include my RampTime.
The datatype for EndTime is also Date/time.
HoldTime values can include a fractional component (e.g., 11.25 hours). A ramp time might be .5 hours.
So, lets say based upon the above values that my StartTime is 8:00:00 AM, then my EndTime should be 07:45:00 PM and not 07:00:00 PM, which is what I am getting.
I appreciate any help you can provide,
Ben