<%
'-----------------------------------------------
'THIS NESTED QUERY DRAWS VERSION TABLE
'-----------------------------------------------
strQuery = "SELECT * FROM tblCactuShopVersions WHERE V_Quantity0 ORDER BY (V_Quantity+0.001)/V_QuantityWarnLevel"
Call ExecuteSQL(strQuery, numCursorType, objRecordSet)
%>
<%
do while not objRecordSet.EOF
numBackgroundCounter = numBackgroundCounter + 1
If numBackgroundCounter mod 2 = 0 then
strBgColour = "#EEEEEE"
strBgColour2 = "#FFAAAA"
else
strBgColour = "#DDDDDD"
strBgColour2 = "#FFBBBB"
end if
If objRecordSet("V_Quantity") <= 0 then strBgColour = strBgColour2
%>