Hello,
I am new to ASP and can't get this to work. I am sure that it is something simple. Additionally, can some explain what the additional parameters in the rs.open line represent?
Thanks,
Jesse
<%@ Language=VBScript %>
<%
Dim conn
Dim rs
Dim strConn
Dim strSQL
Dim appNumb
Dim SQLstr
appNumb = Request.Form("txtAppNumb"
strSQL = "SELECT tbl1Master.* FROM tbl1Master WHERE tbl1Master.[1ApplNumb])="""& appNumb & """;"
'Create the object. In this case Connection to a database
Set Conn = Server.CreateObject("ADODB.Connection"
'Select the provider
Conn.Provider = "Microsoft.Jet.OLEDB.4.0"
'Select the data source.
Conn.ConnectionString = "Data Source=C:\Inetpub\
'Open the connection
Conn.Open
'Create a recordset object
Set Rs = Server.CreateObject("ADODB.Recordset"
'Open the recordset with the connection created earlier
Rs.Open strSQL,Conn, 1,3
Response.write rs(0).value
%>
<br><br>
<%
Response.write appNumb
%>
I am new to ASP and can't get this to work. I am sure that it is something simple. Additionally, can some explain what the additional parameters in the rs.open line represent?
Thanks,
Jesse
<%@ Language=VBScript %>
<%
Dim conn
Dim rs
Dim strConn
Dim strSQL
Dim appNumb
Dim SQLstr
appNumb = Request.Form("txtAppNumb"
strSQL = "SELECT tbl1Master.* FROM tbl1Master WHERE tbl1Master.[1ApplNumb])="""& appNumb & """;"
'Create the object. In this case Connection to a database
Set Conn = Server.CreateObject("ADODB.Connection"
'Select the provider
Conn.Provider = "Microsoft.Jet.OLEDB.4.0"
'Select the data source.
Conn.ConnectionString = "Data Source=C:\Inetpub\
'Open the connection
Conn.Open
'Create a recordset object
Set Rs = Server.CreateObject("ADODB.Recordset"
'Open the recordset with the connection created earlier
Rs.Open strSQL,Conn, 1,3
Response.write rs(0).value
%>
<br><br>
<%
Response.write appNumb
%>