Closed Thread
Results 1 to 3 of 3

Thread: Object Required?!?!?

  1. #1
    Barn Newbie jarvelous is an unknown quantity at this point jarvelous's Avatar
    Join Date
    Mar 2008
    Posts
    3
    Rep Power
    3

    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.

  2. #2
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Washington, D.C.
    Posts
    2,347
    Blog Entries
    9
    Rep Power
    19

    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)
    
    jmurrayhead
    If you agree, give me rep. If my post helped you, click "Thanks".
    If you like it here...throw us a few bones to help support us.


  3. #3
    Barn Newbie jarvelous is an unknown quantity at this point jarvelous's Avatar
    Join Date
    Mar 2008
    Posts
    3
    Rep Power
    3

    got it thanks.

Closed Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO