G
Guest
hi
Im trying to retrieve data(name, roll no, form no) after I enter roll no. of
some student.
Im using asp & msaccess(database=result06, DSN=msaccess)
what im doing wrong can anyone help me
<form action="result06.asp" method="post" name="form1" target="_parent">
<label>Roll No</label>
<input name="txtroll" type="text" id="txtroll">
<input type="submit" name="Submit" value="Submit">
</form>
<p>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="Connections/connection.asp" -->
<%
Dim Recordset
Dim Recordset_numRows
Set Recordset = Server.CreateObject("ADODB.Recordset")
Recordset.ActiveConnection = MM_connection_STRING
Recordset.Source = "SELECT * FROM result06 WHERE txtroll = " & ROLL_NO & " "
Recordset.CursorType = 0
Recordset.CursorLocation = 2
Recordset.LockType = 1
Recordset.Open()
Recordset_numRows = 0
%>
</p>
<p>
</p>
<%
Recordset.Close()
Set Recordset = Nothing
%
<%=(Recordset.Fields.Item("FORM_NO").Value)%><%=(Recordset.Fields.Item("ROLL_NO").Value)%>
Im trying to retrieve data(name, roll no, form no) after I enter roll no. of
some student.
Im using asp & msaccess(database=result06, DSN=msaccess)
what im doing wrong can anyone help me
<form action="result06.asp" method="post" name="form1" target="_parent">
<label>Roll No</label>
<input name="txtroll" type="text" id="txtroll">
<input type="submit" name="Submit" value="Submit">
</form>
<p>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="Connections/connection.asp" -->
<%
Dim Recordset
Dim Recordset_numRows
Set Recordset = Server.CreateObject("ADODB.Recordset")
Recordset.ActiveConnection = MM_connection_STRING
Recordset.Source = "SELECT * FROM result06 WHERE txtroll = " & ROLL_NO & " "
Recordset.CursorType = 0
Recordset.CursorLocation = 2
Recordset.LockType = 1
Recordset.Open()
Recordset_numRows = 0
%>
</p>
<p>
</p>
<%
Recordset.Close()
Set Recordset = Nothing
%
<%=(Recordset.Fields.Item("FORM_NO").Value)%><%=(Recordset.Fields.Item("ROLL_NO").Value)%>