Wrox Programmer Forums
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 18th, 2005, 02:38 PM
Registered User
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ajjones
Default ADODB.Recordset error '800a0cb3'

I am receiving this error and have change the cursor type to 3.. I don't know what else to do... please take a gander at my code.. thanks in advance.

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

<%
Dim Info
Dim Info_numRows
Dim id, Address, City, St, Zip, employee
Dim strSQL
Address = Request.Form("Address")
City = Request.Form("City")
St = Request.Form("St")
Zip = Request.Form("Zip")
'ID = Request.Form("id")
ID = TRIM(Request( "ID" ))
Set Info = Server.CreateObject("ADODB.Recordset")
Info.ActiveConnection = MM_MAPP_CONN_STRING
Info.Source = "SELECT * FROM Info where ID =" & ID
Info.CursorType = 3
Info.CursorLocation = 2
'Info.LockType = 1
Info.Open()
'Info_numRows = 0
'strSQL = "UPDATE INFO SET Address = " & Address & ", City = " & City & ", State = " & St & ", Zip = " & Zip & " "
'set Info=
'objConn.execute(strSQL)
'Info.Find "ID=" & ID
'if Request.Form(address) <> "" then
if not Info.EOF then
Info.Fields("Address") = Request.Form("Address")
'endif
'if Request.Form(city) <> "" then
Info.Fields("City") = Request.Form("City")
'endif

'if Request.Form(st) <> ""
Info.Field("State") = Request.Form("St")
'endif

'if Request.Form(zip) <> ""
Info.Fields("Zip") = Request.Form("Zip")
'endif
end if
Info.Update

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="styles.css" rel="stylesheet" type="text/css">
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
    margin-left: 0px;
    margin-top: 0px;
    background-color: #003366;
}
.style5 {font-family: Tahoma, "Trebuchet MS"; font-weight: bold; font-size: 14px; }
.style1 { font-size: 14px;
    font-weight: bold;
}
-->
</style></head>

<body>
<table width="786" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td width="780" height="139" valign="top" bgcolor="#003366"><p><img src="images/header.gif" width="780" height="139"></p>
    </td>
  </tr>
  <tr>
    <td height="459" valign="top"><table width="200" border="0" cellspacing="0">
        <tr>
          <th width="780" height="33" align="left" valign="top"><img src="images/topmenu.gif" width="780" height="31"></th>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="35%" rowspan="2" align="left" valign="top" bgcolor="#FFF8E3">&nbsp;</td>
          <td width="65%" height="252" align="center" valign="top"><p>&nbsp;</p>
          <p><img src="images/map.gif" width="258" height="37"></p>
                  <table width="496" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
                    <tr bgcolor="#D9A816">
                      <td colspan="3"><span class="style1">Address Information for :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;<%=employee%></span></td>
                    </tr>
                    <tr>
                      <td colspan="3">&nbsp;</td>
                    </tr>
                    <tr>
                      <td width="54" rowspan="2">&nbsp;</td>
                      <td width="167"><span class="style1">Old Address</span></td>
                      <td width="267"><span class="style1">New Address </span></td>
                    </tr>
                    <tr>
                      <td colspan="2">&nbsp;</td>
                    </tr>
                    <tr>
                      <td height="45"><strong>&nbsp;&nbsp;Address</strong></td>
                      <td align="center"><% = Address %></td>
                      <td><div align="center"><%Request.Form(Address)%> </div></td>
                    </tr>
                    <tr>
                      <td height="39"><strong>&nbsp;&nbsp;City</strong></td>
                      <td align="center"><% = City%>
                  &nbsp;</td>
                      <td><div align="center">
                        <%Request.Form(City)%>
</div></td>
                    </tr>
                    <tr>
                      <td height="42"><strong>&nbsp;&nbsp;State</strong></td>
                      <td align="center"><%=St%>&nbsp;</td>
                      <td>&nbsp;&nbsp;&nbsp; <div align="center">
                        <%Request.Form(St)%>
                      </div></td></tr>
                    <tr>
                      <td height="39"><strong>&nbsp;&nbsp;Zip</strong></td>
                      <td align="center"><%=Zip%>&nbsp;</td>
                      <td>&nbsp;&nbsp;&nbsp; <div align="center">
                        <%Request.Form(zip)%>
                      </div></td></tr>
                    <tr>
                      <td height="18" colspan="3">&nbsp;</td>
                    </tr>
                  </table>
                  <p>&nbsp;</p>
          <p>&nbsp;</p>
            <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; </p>
            <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;</p>
            <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p><img src="images/clogo.gif" width="153" height="70"></p>
          <p>&nbsp;</p></td>
        </tr>
        <tr>
          <td height="68" align="right" valign="top"><img src="images/footer.gif" width="513" height="68"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>

</body>
</html>
<%
Info.Close()
Set Info = Nothing
%>
 
Old January 18th, 2005, 04:18 PM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

Info.Source = "SELECT * FROM Info where ID =" & ID
Please check if value is coming in ID variable.


Om Prakash





Similar Threads
Thread Thread Starter Forum Replies Last Post
ADODB.Recordset error '800a0cb3' klittlejohn SQL Server ASP 2 January 19th, 2004 10:17 PM
ADODB.Recordset error '800a0cb3' khalid08 Classic ASP Databases 1 September 23rd, 2003 07:15 AM
ADODB.Recordset error '800a0cb3' jmss66 Classic ASP Databases 1 July 16th, 2003 04:18 PM
ADODB.Recordset error '800a0cb3' jmss66 Classic ASP Basics 4 July 16th, 2003 04:16 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.