Forums

ASP

This topic is locked

Please help Object required

Posted 18 Oct 2001 15:23:59
1
has voted
18 Oct 2001 15:23:59 simon bloodworth posted:
I am trying to incorporate a poll in my site and have set it all up or so i thought but when a choice is made and it goes to the results page i get the error.

Vbscript Runtime error 'ASP 0185 : 424'
Object required

/poll.asp,line 33


any idea what it is i am doing wrong.


S Bloodworth

Replies

Replied 19 Oct 2001 17:09:25
19 Oct 2001 17:09:25 Joel Martinez replied:
whoa... you're gonna have to give us a lot more info than that.

first, where did you get that script?
you may try asking the author of the script.

if you wrote it...what is on that line... what code. if you give us about the 5 lines before and after that line, we may be able to help. but you should try trouble shooting the problem yourself, make sure that the variable being called was properly initialized.

if you didn't get that last bit, just post the code, and we should be able to help

Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/
Replied 22 Oct 2001 11:37:31
22 Oct 2001 11:37:31 simon bloodworth replied:
Sorry, Forget to put rest of code on page.

I got the code from T-cubed and havent had a reply from them.
The code is as follows
<%
'Get Poll Results using Filter
Dim arrCount(1000)
HighestValue = 0
For i = 1 to 4
FilterParam = i
rsPollResults.Filter = "Choice = " & FilterParam
'Count results
While NOT rsPollResults.EOF
arrCount(i) = arrCount(i) + 1
rsPollResults.MoveNext()
Wend
If arrCount(i) > HighestValue then
HighestValue = arrCount(i)
End If

Next
If HighestValue > 0 then
Ratio = 200/HighestValue
End If
%>

Hope this is a little bit more helpful

Cheers
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
whoa... you're gonna have to give us a lot more info than that.

first, where did you get that script?
you may try asking the author of the script.

if you wrote it...what is on that line... what code. if you give us about the 5 lines before and after that line, we may be able to help. but you should try trouble shooting the problem yourself, make sure that the variable being called was properly initialized.

if you didn't get that last bit, just post the code, and we should be able to help

Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

S Bloodworth
Replied 22 Oct 2001 16:24:43
22 Oct 2001 16:24:43 Joel Martinez replied:
That's a bit more helpful, but you still didn't specify what line was line 33...

I'm going to go ahead and assume that it's a problem with the recordset (rsPollResults). look up higher in the code, this recordset shold be initialized by a connection somewhere.

Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/
Replied 22 Oct 2001 16:58:15
22 Oct 2001 16:58:15 simon bloodworth replied:
Again, Sorry, The line below is line 33


rsPollResults.Filter = "Choice = " & FilterParam

Sorry to mess you about

cheers


Simon

Reply to this topic