V
Vincent Jones
I have this:
<%
Dim objConn, RS, strQ, strConnection
Set objConn = Server.CreateObject("ADODB.Connection")
strConnection = "DSN=Development;Database=PMA_Internet;"
objConn.Open strConnection
Set RS = Server.CreateObject("ADODB.Recordset")
Set RS.ActiveConnection = objConn
strQ = "Select StaffName From tbStaff"
RS.Open strQ
%>
But I now want to connect to another table. Do I close the connection
and start over again to create 'strQ = "Select CorrectType from
Corrections'?
Thanks.
<%
Dim objConn, RS, strQ, strConnection
Set objConn = Server.CreateObject("ADODB.Connection")
strConnection = "DSN=Development;Database=PMA_Internet;"
objConn.Open strConnection
Set RS = Server.CreateObject("ADODB.Recordset")
Set RS.ActiveConnection = objConn
strQ = "Select StaffName From tbStaff"
RS.Open strQ
%>
But I now want to connect to another table. Do I close the connection
and start over again to create 'strQ = "Select CorrectType from
Corrections'?
Thanks.