Hi All,
I have two database fields
1) SolvedJobs (Datatype- Numeric, actually i get this field using the expression COUNT (*) AS SolvedJobs, so i am not sure of what data type is it, so i am guessing it is numeric)
2) TimeTaken (Datatype- Decimal)
I am trying to display the average time per job but i am facing the type mismatch error.
On my ASP i have written something like this.
Dim Avgtime
Avgtime = rsObj("TimeTaken"
/rsObj("SolvedJobs"
i also tried
Avgtime = CAST(rsObj("TimeTaken"
AS Integer)/rsObj("SolvedJobs"
but did not work.
Any help would be appreciated.
Thanks in advance.
VJ
I have two database fields
1) SolvedJobs (Datatype- Numeric, actually i get this field using the expression COUNT (*) AS SolvedJobs, so i am not sure of what data type is it, so i am guessing it is numeric)
2) TimeTaken (Datatype- Decimal)
I am trying to display the average time per job but i am facing the type mismatch error.
On my ASP i have written something like this.
Dim Avgtime
Avgtime = rsObj("TimeTaken"
i also tried
Avgtime = CAST(rsObj("TimeTaken"
but did not work.
Any help would be appreciated.
Thanks in advance.
VJ