Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADO could not find the object

Status
Not open for further replies.

ROHO

Programmer
Mar 1, 2002
6
0
0
GB

<HTML>
<BODY>
<%
S_ID=REQUEST.FORM(&quot;STAFF_ID&quot;)
CH=REQUEST.FORM(&quot;CHARGES&quot;)
P_ID=REQUEST.FORM(&quot;PATIENT_ID&quot;)
TYPE_TEST=REQUEST.FORM(&quot;TYPE_TEST&quot;)
RESULT_TEST=REQUEST.FORM(&quot;RESULT_TEST&quot;)
REMARKS=REQUEST.FORM(&quot;REMARKS&quot;)

SET rs=server.createobject(&quot;adodb.recordset&quot;)
rs.locktype=2
rs.cursortype=3
rs.open &quot;select * from x_ray&quot;,&quot;dsn=teledata&quot;
rs.movelast

rs.addnew

rs(&quot;STAFF_ID&quot;)=S_ID
rs(&quot;CHARGES&quot;)=CH
rs(&quot;PATIENT_ID&quot;)=P_ID
rs(&quot;TYPE_TEST&quot;)=TYPE_TEST
rs(&quot;RESULT_TEST&quot;)=RESULT_TEST
rs(&quot;REMARKS&quot;)=REMARKS

rs.update
rs.close
%>
I HAVE WRITTEN THIS CODE AND IT IS GIVING ME ERRORS ADODB.Fields error '800a0cc1'

ADO could not find the object in the collection corresponding to the name or ordinal reference requested by the application.

/xray_rep.asp, line 20
uptill my info it seems to be alright


 
Do these table field names match up with the names in your table.
rs(&quot;STAFF_ID&quot;)=S_ID
rs(&quot;CHARGES&quot;)=CH
rs(&quot;PATIENT_ID&quot;)=P_ID
rs(&quot;TYPE_TEST&quot;)=TYPE_TEST
rs(&quot;RESULT_TEST&quot;)=RESULT_TEST
rs(&quot;REMARKS&quot;)=REMARKS

You don't mention the backend database, the names maybe case sensitive.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top