Go Back   DeveloperBarn Forums > Programming & Scripting > ASP Development

Sponsored Links

Discuss "Object Required?!?!?" in the ASP Development forum.

ASP Development - Learn coding practices and tips to get the best out of your Active Server Pages (ASP). The Classic ASP forum is for ASP/VBScript and ASP/JScript applications.


Closed Thread « Previous Thread | Next Thread »  
 
LinkBack Thread Tools Display Modes
  #1  
Old March 20th, 2008, 12:41 PM
Barn Newbie
 
Join Date: Mar 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1
jarvelous is an unknown quantity at this point
Exclamation Object Required?!?!?

BLaaaarche gave me some code iin another post. The code is this:

strSQL = "Select memberid, membername from members"
Set objRS = siteConn.Execute(strSQL)

I am getting an error.

ASP Error occurred 3/20/2008 9:38:17 AM in Microsoft VBScript runtime
Error number: -2146827864 (0x800A01A8)
File: /test/Default.asp, line 3
Object required: 'siteConn'

Can anyone please explain to me what this is? I am new to ASP, please bare with me!!!!!!

Last edited by richyrich; May 6th, 2008 at 11:19 AM.
Sponsored Links
  #2  
Old March 20th, 2008, 12:43 PM
jmurrayhead's Avatar
The Barnfather

 
Join Date: Mar 2008
Location: Reston, VA, USA
Posts: 820
Thanks: 20
Thanked 74 Times in 71 Posts
Blog Entries: 5
Rep Power: 3
jmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura about

Awards Showcase
Microsoft Windows Microsoft .Net Microsoft SQL Server Classic ASP 
Total Awards: 4

Default

You have to define what siteConn is:
Code:
Set siteConn = Server.CreateObject("ADODB.Connection")
strSQL = "Select memberid, membername from members"
Set objRS = siteConn.Execute(strSQL)

Comments on this post
jarvelous agrees:
__________________
jmurrayhead
If you agree with me... click the icon!
If my post solved your problem, click the button in the lower right-hand corner of the post.

Join our Folding team: DeveloperBarn Folding
  #3  
Old March 20th, 2008, 12:46 PM
Barn Newbie
 
Join Date: Mar 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1
jarvelous is an unknown quantity at this point
Default

got it thanks.
Closed Thread

  DeveloperBarn Forums > Programming & Scripting > ASP Development

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -4. The time now is 04:32 PM.



Content Relevant URLs by vBSEO 3.2.0