Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 error '8004e07'
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

DarkDrift
Junior Member

USA
126 Posts

Posted - 05 January 2005 :  17:14:25  Show Profile  Visit DarkDrift's Homepage  Send DarkDrift an AOL message
Microsoft JET Database Engine error '80040e07'

Data type mismatch in criteria expression.

/dev/traderfeedback/view.asp, line 55

line 55 is either


rsV.open "SELECT * FROM SITE_COMP WHERE U_ID = '" & intTopID & "'", my_conn


OR

rsV.open strsql,my_conn


I get the same error on both?

my code is:


<%
	set rsV = Server.CreateObject("ADODB.RECORDSET")
rsV.open "SELECT * FROM SITE_COMP WHERE U_ID = '" & intTopID & "'", my_conn
		
	'rsV.open strsql,my_conn
Response.Write("<h3 class=""style2"">  Information Display for ID " & intTopID & "</h3>")
%>
		</td>
	</tr>
	<tr>
	  <td>
<%
Response.Write	"<center><p>This information was posted on " & rsV("DATE") & ""	& VbNewLine & _
		"Topic Status: "	& VbNewLine
If rsV("UA_LOCKED") = 0 then
Response.Write	"UnLocked"	& VbNewLine
else
Response.Write	"Locked for Content"	& VbNewLine
end if
Response.Write	"Aliases:<Br>" & rsV("U_ALIS") & ""	& VbNewLine & _
		"<br>User Contact:<br>" & rsV("U_CONTACT") & "" & VbNewLine & _
		"<br>Details of Events:<br>" & rsV("U_INFO") & "" & VbNewLine
If rsV("U_PROOF1") <> "" then
Response.Write	"<br>Link 1: <a href=""" & rsV("U_PROOF1") & """>" & rsV("U_PROOF1") & "</a>"	& VbNewLine
end if
If rsV("U_PROOF2") <> "" then
Response.Write	"<br>Link 2: <a href=""" & rsV("U_PROOF2") & """>" & rsV("U_PROOF2") & "</a>"	& VbNewLine
end if
If rsV("U_PROOF3") <> "" then
Response.Write	"<br>Link 3: <a href=""" & rsV("U_PROOF3") & """>" & rsV("U_PROOF3") & "</a>"	& VbNewLine
end if
Response.Write	"<br><br><a href=""./reply.asp?ID=" & intTopID & """>Add to Content</a>"	& VbNewLine
rsV.close
set rsV = nothing
%>


Can't quite figure out whats wrong? Any Ideas?

http://www.xcalliber.com - The Future of Boards

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 05 January 2005 :  17:21:27  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
if the ID is a numeric field, remove the single quotes from around the value

-Stim
Go to Top of Page

DarkDrift
Junior Member

USA
126 Posts

Posted - 05 January 2005 :  17:41:50  Show Profile  Visit DarkDrift's Homepage  Send DarkDrift an AOL message
I tell you who ever "created" Databases really had some time on their hands to go that in detail... it worked... Thanx

http://www.xcalliber.com - The Future of Boards
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07