Thanks for the quick reply Veep.
I'd taken most of the html out of the main page, as it's fine, it's just the include that doesn't seem to work.
I've put the code for the questions, updating and results pages below.
Should the main page have the include in a layer and should I use javascript to change the content?
As the ASP works fine if I just open
poll_ques.asp, should I have posted this in the html forum?
POLL_QUES.ASP
<!-- #include file="dbase_connect"-->
<%
call dbsetup("\data\poll.mdb",oConn)
sql="select id,question from poll order by id desc"
set RS=oConn.Execute(sql)
%>
<table border="0">
<% if not RS.BOF and not RS.EOF then%>
<tr>
<td><b><%=RS("question"

%></b></td>
</tr>
<%
sql2="select poll_option from options where poll_id=" & RS("id"

set RS2=oConn.Execute(sql2)%>
<form method="POST" action="poll_update.asp" target="_self">
<input type="hidden" name="id" value="<%=RS("id"

%>">
<%while not RS2.BOF and not RS2.EOF%>
<tr>
<td><%=RS2("poll_option"

%></td>
<td><input type="radio" name="option" value="<%=RS2("poll_option"

%>"></td>
</tr>
<%RS2.movenext
wend%>
<tr>
<td colspan="2"><input type="submit" value="Vote"></td>
</tr>
</form>
<%end if%>
<tr>
<td colspan="2"><a href="#" onclick="window.open('results.asp?id=<%=RS("id"

%>','','width=300,height=300')">view results</a></td>
</tr>
</table>
POLL_UPDATE.ASP
<!-- #include file="dbase_connect.asp"-->
<%
call dbsetup("\data\poll.mdb",oConn)
sql="select votes from options where poll_id=" & request("id"

& " and poll_option='" & request("option"

&"'"
set RS=oConn.Execute(sql)
sql2="update options set votes = "& RS("votes"

+ 1 & " where poll_id=" & request("id"

& " and poll_option = '" & request("option"

& "'"
set RS2=oConn.Execute(sql2)
response.redirect("results.asp?id=" & request("id"

)
%>
RESULTS.ASP
<!-- #include file="db_conn.asp"-->
<!--display the results of the poll -->
<%
call dbsetup("\data\poll.mdb",oConn)
sql="select id, question from poll where id=" & Request("id"
set RS=oConn.Execute(sql)
%>
<table border="0">
<% if not RS.BOF and not RS.EOF then%>
<tr>
<td><b><%=RS("question"

%></b></td>
</tr>
<%
sql3="select sum(options.votes) as sumofvotes from options where poll_id=" & RS("id"

set RS3=oConn.Execute(sql3)
sql2="select poll_option, votes from options where poll_id=" & RS("id"

set RS2=oConn.Execute(sql2)
while not RS2.BOF and not RS2.EOF%>
<%dim votepercent, votevalue%>
<%if RS3("sumofvotes"

<>0 then
votepercent=formatnumber(100*(RS2("votes"

/RS3("sumofvotes"

),2)
else
votepercent=0
end if
votevalue=RS2("votes"

%>
<tr>
<td><%=RS2("poll_option"

%></td><td><%=votepercent%></td>
<td><img src="pixel.gif" height="10" width="<%=votepercent*1.5%>" style="background-color:red"></td>
</tr>
<%RS2.movenext
wend%>
<%end if%>
</table>