|
-
Apr 18th, 2006, 03:40 AM
#1
Thread Starter
Lively Member
Exception occurred
Hi all.
I got this error when I run the page on localhost.
Error Type:
Error Type:
(0x80020009)
Exception occurred.
/biotec_dwnstairs/sokongan_senarai.asp, line 8
Below is the portion of my code.
The commented shows line 8 where the error is.
VB Code:
<%
set gpermohonan = server.CreateObject("adodb.recordset")
gpermohonan.open " SELECT * FROM permohonan WHERE sokong IS NULL and jpk = 1 ",conn
set gstaf = server.CreateObject("adodb.recordset")
gstaf.open "SELECT * FROM staf WHERE id='"&gpermohonan("id")&"'" ,conn 'line 8
%>
Why the error occur?
Can anyone help me correct the error?
Thanks in advance.
-
Apr 18th, 2006, 03:59 AM
#2
Re: Exception occurred
Did you try putting proper spaces in between
VB Code:
gstaf.open "SELECT * FROM staf WHERE id='" & gpermohonan("id") & "'" , conn
Use [code] source code here[/code] tags when you post source code.
My Articles
-
Apr 19th, 2006, 04:19 AM
#3
Member
Re: Exception occurred
Do you get a value if you response.write gpermohonan("id") after the first sql query (you can just throw in a response.end after it to stop the second query throwing up an error while you debug)? If so I'd probably try running that query through the sql server to see what it returns there.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|