I m getting this message after executing the following code
Expand|Select|Wrap|Line Numbers
- <%
- CALL OPENDATACON
- DIM RS
- SET RS=SERVER.CreateObject ("ADODB.RECORDSET")
- s="select * from dbpassenger order by ref_no"
- CALL OPENRS(RS,S)
- DIM RS1
- dim aa
- SET RS1=SERVER.CreateObject ("ADODB.RECORDSET")
- s="select * from dbfare where flight_id='" & session("fid") & "'"
- CALL OPENRS(RS1,S)
- if rs.RecordCount >0 then
- rs.MoveLast
- aa=rs("ref_no") + 1
- else
- aa=1
- end if
- session("ref_no")=aa
- DIM XX
- xx=0
- <% if len(trim(request("txtfname1")))>0 then
- RS.AddNew ' I m getting error on this line
- rs("ref_no")=CINT(aa)
- rs("flight_id")=session("fid")
- rs("first_name")=request("txtfname1")
- rs("last_name")=request("txtlname1")
- rs("sex")=request("sex1")
- rs("age")=request("TXTage1")
- if request("TXTage1")<12 then
- xx=xx+rs1("fare_child")
- else
- xx=xx+ rs1("fare_adult")
- end if
ADODB.Recordset (0x800A0CB3)
Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype
I m using SQL Server 2000 with asp.
here ref_no is numeric