Changed it to this:
<%
if timeoption = "option_bookings_only" then
response.write "Option"
Set rs=con.execute("select * from trip_master where agencyid = '"&agencyid&"' and status = 'TL'")
'response.write ("select * from trip_master where agencyid = '"&agencyid&"' and status = 'TL'") & "<br>"
while not rs.eof
rs.movenext
wend
response.write "NO RECORDS!"
'response.redirect("bookings.asp?badlogin=true")
end if
%>
still crashes my IIS/DB!"!!!!!!!
WTF?
Picco
www.crmpicco.co.uk