jag löste det själv :) Kanske inte det mest ultimata :) men det fungerar iaf =)
<%
SQL = "SELECT Count(*) AS intAntal FROM tblAnswer WHERE PollID = "&pollid&""
Set RSCountallt = conn.execute(SQL)
if RSCountallt(0) = "0" then
counterror = "1"
end if
Do until RSOption.eof
svar = RSOption("svarsval")
opid = RSOption("OptionID")
SQL = "SELECT Count(*) AS intAntal FROM tblAnswer WHERE PollID = "&pollid&" AND OptionID = "&opid&""
Set RSCountdel = conn.execute(SQL)
if RSCountdel(0) ="0" then
counterror = "1"
end if
%>
<tr>
<td bgcolor="#E0DFE3"><%=svar%></td>
</tr>
<%If counterror <> "1" then%>
<tr>
<td bgcolor="#E0DFE3"><%
procent = Round(RSCountdel(0) / RSCountallt(0) * 100)
%><IMG src="syspic/nbar.gif" height="5" width="<%=procent%>%"> <%=procent%>%</td>
</tr>
<%else%>
<td bgcolor="#E0DFE3"><IMG src="syspic/nbar.gif" height="5" width="2"> 0%</td>
</tr>
<%end if%>