Print Page | Close Window

Error

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=8805
Printed Date: 01 April 2026 at 2:39am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Error
Posted By: ivonda
Subject: Error
Date Posted: 12 January 2004 at 10:07am

Hello,

Can someone help me out? I have a problem with:

Microsoft VBScript runtime error '800a01a8'
Object required: ''
/photo/vacation/type.asp, line 41

I have added this two lines and I must create an Object!
<img src="<%=(rsTypes.Fields.Item("TYPE_IMAGEHEAD").Value)%> ; ;">
<img src="<%=(rsTypes.Fields.Item("TYPE_IMAGENAME").Value)%> ; ;">

But How do I create an object? Can someone help me out? Please see also the picture of the MDB file. 

Thanks!




Replies:
Posted By: aalavar
Date Posted: 12 January 2004 at 10:38am

Post the code to your type.asp file, or at least the lines around 41, it's not that easy to see what the problem is without it.

However, if I were guessing, I would say the problem is that the field is blank (since there are some blank entries for images in the DB), and you are trying to manipulate that in some way.



Posted By: redhead
Date Posted: 12 January 2004 at 10:43am

You have to remove the ; from your quotes, and the .value. It says its using VBScript, not JavaScript. You are using JavaScript syntax.  It should say:

<img src="<%=rsTypes("TYPE_IMAGEHEAD")%>">
<img src="<%=rsTypes("TYPE_IMAGENAME")%>">

That's got to help even if that isn't line 41.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net