ASP Development
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Remember me

Go Back   Dev Articles Community ForumsProgrammingASP Development

Add This Thread To:   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
Unread Dev Articles Community Forums Sponsor:
Old December 12th, 2002, 01:28 PM
aspnewbie aspnewbie is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
Join Date: Apr 2002
Location: The Great White North
Posts: 361 aspnewbie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 50 sec
Reputation Power: 17
Send a message via MSN to aspnewbie
Unhappy Type Mismatch Error - 800A000D

I'm getting the following error

Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'NumOfSubs'
/filename.asp, line 153

Here's line 153


<% If NumOfSubs(objRSM("CourseID")) < 1 Then %>

It is supposed to be calling a function NumOfSubs(ParentID)

Function NumOfSubsM(ParentID)

	strSubCounterM = "SELECT Count(CourseID) as SubNumber  
                FROM tbl_Courses WHERE Parent=" & ParentID  
	Set objSubCounterM = objconn.execute(strSubCounterM) 
	if not objSubCounterM.eof then 
	NumOfSubsM = objSubCounterM("SubNumber") 
	NumOfSubsM = 0
	end if
	Set objSubCounterM = Nothing

End Function

However, it could be that vbscript is expecting the code to asign a value to the first element of an array "NumOfSubs." That's according to

Does anyone know a way around this? I need it to call the function. This code worked fine on Access but now I'm having a problem migrating it to SQL server.

Thanks in advance

Reply With Quote

Viewing: Dev Articles Community ForumsProgrammingASP Development > Type Mismatch Error - 800A000D

Developer Shed Advertisers and Affiliates

Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.

© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap