Hi,
I currently have a sum of numbers that are returned from my SQL for our sales orders, I also have a column that returns the seconds from the SQL. I used this below to convert the seconds to Time.
Public Function SecondsToHours(ByVal secs As Integer) As String Dim ts As New TimeSpan(0, 0, secs) Dim hoursStr As String = String.Format( _ "{0:00}:{1:00}:{2:00}", _ ts.TotalHours, ts.Minutes, ts.Seconds) Return hoursStr End Function
However I think it is string time and not real time. When I try to divide the number of sales orders by this time that is returned above I get an #Error in my textbox.
I have tried many variations of this expression below but cant get past the Error.
=cint(reportitems!Textbox75.value)/reportitems!Textbox84.Value
So is there a way to convert the time returned from the function above into real time so I can divide the Sales Orders by the Time to get Orders / Hour?
Thanks for any help or suggestions.
Mike