G
Guest
I have a query with one field that calls a function. The function performs a
time difference calculation and converts it to time in days (i.e. 0.0125). I
checked to make sure the output was numeric by "isnumeric(Calculation)" and
it always comes back as "True". So the function should be returning a
number, yet when a sum is done on the field in the report, it errors out as:
"Microsoft Jet database engine could not execute the SQL statement because
it contains a field that has an invalid data type."
Therefore, it must be switching to a string field. If I export it into
Excel or perform a make-table query it is a string as well. How can I keep
it a number to perform my sum? Thanks for the help!!
time difference calculation and converts it to time in days (i.e. 0.0125). I
checked to make sure the output was numeric by "isnumeric(Calculation)" and
it always comes back as "True". So the function should be returning a
number, yet when a sum is done on the field in the report, it errors out as:
"Microsoft Jet database engine could not execute the SQL statement because
it contains a field that has an invalid data type."
Therefore, it must be switching to a string field. If I export it into
Excel or perform a make-table query it is a string as well. How can I keep
it a number to perform my sum? Thanks for the help!!