Thread: Help With Error
View Single Post
Old 06-19-2002, 10:24 PM   PM User | #1
MrJL
New Coder

 
Join Date: Jun 2002
Location: Central Ohio
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
MrJL is an unknown quantity at this point
Question Help With Error

Ok, I can download scripts and sometimes I can get them to work. I've been batting about .500 lately, this is a swing & a miss, though. I got an error.

Quote:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver]Error in row

/quotes/quote_submit.asp, line 37
And the code:

Code:
<% 
	quote = request.form("quotecrt")
	name = request.form("namecrt")
	
	quote = Replace(quote,"&##&","""")
	name = Replace(name,"&##&","""")
				
  	Set Conn=Server.CreateObject("ADODB.Connection")
	Conn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & server.mappath("/fpdb/quotes.mdb")

	SQL = "Select top 1 * from quotes order by quoteid desc;"
	
	Set rs = Server.CreateObject("ADODB.Recordset")
      
	rs.open sql,conn,1,3
	  

	if not rs.eof then
		num = rs("quoteid") + 1
	else
		num = 1
	end if

	flag = false
	rs.addnew
	rs("quoteid") = num
	rs("quotetext") = quote
	rs("author") = name
	rs.update
	
	rs.close	
	conn.close
	set rs = nothing
	set conn = nothing
	Response.Redirect "index.asp"
%>
Line 37 is the re.update line (I omitted the html tags & such.

Any help appreciated. Thanks!

Jer!
__________________
Jers-Web, Inc.
Ever seen 49,825 Alert Boxes on one page? I have!
MrJL is offline   Reply With Quote