m.nConnectionHandle = SQLCONNECT('TimeClockPlus') cCostCode = '11708' TEXT TO lcCmd NOSHOW PRETEXT 15 select cast(dbo.EmployeeHours.EmployeeId as TinyInt) as EmployeeID, EmployeeHours.TimeOut, ROUND(DATEPART(hour,TimeOut)+CEILING(CAST(DATEPART(Minute,TimeOut) as decimal)/60 * 100)/100,2) As Decout, CEILING(CAST(DATEPART(Minute,TimeOut) as decimal)/60 * 100)/100 as TestField from EmployeeHours where CostCode = ?cCostCode ENDTEXT ? SQLPREPARE(m.nConnectionHandle,lcCmd,'QueryName') ?? SQLEXEC(m.nConnectionHandle) BROWSE LAST NOWAIT *SQLDISCONNECT(m.nConnectionHandle)I'll continue down this frustrating road (for me anyway). Keep you eyes peeled for further white flags flailing violently :)