Reply
Old 05-21-2004, 02:16 AM Type Mismatch Help
Junior Talker

Posts: 3
Trades: 0
I have a very unusual type mismatch on my site.. Here's the line that its on.

<td class="boldText"><a href="makePosts.asp?subID=<%=rsForum("subjectID")% >">make post</a></td>

I figured cos this looks normal that maybe it was something to do with the loop ahead of this code but i can't see anything. Here is the code that is ahead of this link.

<%
Do While NOT rsForum.EOF
%>
<tr>
<td class="boldText"><%=rsForum("userLogin")%></td>
<td class="text"><%=rsForum("subjectComment")%></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="boldText"><%=rsForum("commentDate")%></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<%
rsForum.MoveNext
Loop
rsForum.Close
Set rsForum = Nothing
objCon.Close
Set objCon = Nothing
%>

If anyone can see why i would be getting a mismatch! that'd be great
meex is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 05-21-2004, 10:47 PM
Average Talker

Posts: 20
Location: London
Trades: 0
I don't know for sure what is wrong but I suspect it may be to do with the 'Nothing' that is being returned by the function rsForum.

Could try setting it to blank strings and see what happens.

www28.brinkster.com/snoww/index.htm

www.grabafreebie.com freebie EBook for grab
Sharon White is offline
Reply With Quote
View Public Profile Visit Sharon White's homepage!
 
Old 05-31-2004, 05:59 AM
Average Talker

Posts: 16
Trades: 0
I would agree. The problem probably isn't the code, it's the data being returned creating the error. You can fix this in code by forcing the data to be of a specific type.
TopGun is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Type Mismatch Help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.12945 seconds with 13 queries