Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time cal error -urgent

Status
Not open for further replies.

teccum

Technical User
Aug 19, 2001
98
US
Hi,
I could not run my report and get an error or warning like

"Hour must be between 0 and 23"

for my formula calculation.

My formula for Y is
Y = Time (Truncate ({@X}/60), Remainder ({@X},60),00)

My formula for X is

((ToNumber (left ({CDMAB.TIME_IN}, 2))) * 60) + (ToNumber (mid ({CDMAB.TIME_IN}, 4, 2))*60)

Any one knows why I get this error message. Am I doing something wrong in my formula calculation.

thanks in advance.

teccum
 
Hi Pgtek,

Thanks for giving me the link info. I will go through that.

thanks
tec
 
Can you provide some samples of what the string field {CDMAB.TIME_IN} returns?

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top