Solved

Object required: ''?????

Posted on 2006-11-17
7
226 Views
Last Modified: 2008-03-10
Why do I keep getting this error:

Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: ''
/don_sched/add_event_confirm.asp, line 23

while using this code:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<%
  strConn = "dsn=don_sched;uid=don_sched;pwd=carter;"
  set Conn = Server.CreateObject("ADODB.Connection")
  Conn.Open strConn
            
  edate = request.form ("edate")
  eprojname = request.form ("eprojname")
  eprojman = request.form ("eprojman")
  eprojdraft = request.form ("eprojdraft")
  etask = request.form ("etask")
  eprojnum = request.form ("eprojnum")
  eprojclient = request.form ("eprojclient")
                        
  strSQL = "INSERT INTO master (edate, eprojname, eprojman, eprojdraft, etask, eprojnum, eprojclient) Values('" & edate & "','" & eprojname & "','" & eprojman & "','" & eprojdraft & "','" & etask & "','" & eprojnum & "','" & eprojclient & "')"            
  response.write strsql
  set rs = connGlobal.Execute (strSQL)
%>
<body>
</body>
</html>
0
Comment
Question by:phishyman2
  • 3
  • 3
7 Comments
 
LVL 4

Expert Comment

by:carlmahon
ID: 17969707
set rs = connGlobal.Execute (strSQL)

should be Conn.Execute (strSQL)
0
 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 125 total points
ID: 17969709
phishyman2,

I think you have a typo and that is why you get the error.  You don't have an object connGlobal when you try to run Execute.  Rename it to Conn.

set rs = Conn.Execute(strSQL)

Let me know if you have any questions or need more information.

b0lsc0tt
0
 
LVL 4

Expert Comment

by:carlmahon
ID: 17969712
Sorry

set rs = Conn.Execute(strSQL)

I left of the first part
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 17969716
@Carlmahon - I wasn't trying to correct you.  It was a late duplicate.  I think you made your point well in the first comment.

bol
0
 

Author Comment

by:phishyman2
ID: 17969780
Sweet. Thanks for the help
0
 
LVL 4

Expert Comment

by:carlmahon
ID: 17970008
b0lsc0tt, thanks for the tip but my second post was done without knowledge of your answer. If I would have seen it then I wouldn't of posted because you gave phishyman2 a good cut and paste answer.
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 17970017
@Carlmahon - That makes sense.  I certainly didn't mean to imply that you got anything from me.  Sorry if it seemed that way. :)

@Phishyman2 - Your welcome!  I'm glad that I could help you.  Thank you for the grade, the points and the fun question.

bol
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now