CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2006
    Posts
    1

    Object required error in page

    hi

    I have an error in my page, the error is:

    Microsoft VBScript runtime error '800a01a8'
    Object required: ''
    /admin/PageSubmissions.asp, line 102

    Line 102 is as follows:
    conn.Execute("EXEC InsertNextPage @StoryID='" & Request.Form("StoryID") & "', @SubscriberID='" & Request.Form("SubmitterID") & "', @Content='" & Cleanse(Request.Form("SubmittedPage")) & "'")

    I have been struggling with this error for a couple of days now and cant seem to fix it...

    I tried adding the story directly into the database table (SQL Server table) but this resulted in another error Error -2147217900 - Syntax error or access violation

    If someone could possibly help me try and solve this error, it would be much appreciated!

    I can provide any further information, you might need.

    Thank you in advance

    Missa

  2. #2
    Join Date
    Jan 2003
    Location
    North Carolina
    Posts
    309

    Re: Object required error in page

    Try creating a variable setting the vairbale equal to your string and passing in the variable to the execute. Have seen builing a string throw issues before.

    Dim strSQL

    strSQL = "EXEC InsertNextPage @StoryID='" & Request.Form("StoryID") & "', @SubscriberID='" & Request.Form("SubmitterID") & "', @Content='" & Cleanse(Request.Form("SubmittedPage")) & "'"

    conn.Execute strSQL

    If it fails then try showing the value of strSQL to make sure it looks correct.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured