1: 2: 3: 4:
sqlCount.CommandText = "SELECT 100.0*Sum(IIF(Camera = 'Yes',1,0))/Count(*) AS PercentageNo FROM Pushback_Table WHERE MyDate like '%"& (Date()) & "%'" set objRs = sqlCount.Execute %> <%= "" & Fix(CDbl(objRs("PercentageNo"))+0.5) & "%" %>