Well, the "mm" is a typo on my part (old eyes, fumble fingers, ...) "nn" is correct for the Minutes part.
I believe the expression is entered "upside-down". Look at the expr in my example the "1" in the numerator is the "variable", and the 86400 is the CONSTant. the return value (1 Second) is 1 86400th of a day. You have the numerator / divisor reversed. IN general, MS. will do the calc anyway - but return generally "revered" (reciprical) values, so this is not the source of an "error", just a math error.
Why you get another "error" must depend on some other process. In general, oracle (and other relational dbs) will not accept VB functions, do if the expression is in a query, you may need to place it into a small function, so the QUERY just retrieves the (numeric) value and passes it to the procedure, which then returns the formatted date/time value MichaelRed
m.red@att.net
There is never time to do it right but there is always time to do it over