|
-
April 6th, 2006, 06:29 AM
#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
-
April 11th, 2006, 03:43 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|