goldfishhh
IS-IT--Management
I've been staring at this too long. Why am I getting this error with this formula: "Too many arguments have been given to this function."
iif(
Length ({ProdJobABEND.TIME})>10,
time(5,5,5),
(Time(
(Mid ({ProdJobABEND.TIME},9,2)),
(Mid ({ProdJobABEND.TIME},12,2)),
(Mid ({ProdJobABEND.TIME},15,2))
)
)
)
My initial test works great:
iif(
Length ({ProdJobABEND.TIME})>10,
time(5,5,5),
time(10,10,10)
)
iif(
Length ({ProdJobABEND.TIME})>10,
time(5,5,5),
(Time(
(Mid ({ProdJobABEND.TIME},9,2)),
(Mid ({ProdJobABEND.TIME},12,2)),
(Mid ({ProdJobABEND.TIME},15,2))
)
)
)
My initial test works great:
iif(
Length ({ProdJobABEND.TIME})>10,
time(5,5,5),
time(10,10,10)
)