Forum Moderators: open
'Creating objrs as recordset to use to communicate with my database by putting my string that holds my sql statement in it
Dim ObjRS
Set objRS = Server.CreateObject("ADODB.Recordset")
'Create string to hold my sql command
Dim strSQL
strSQL = "SELECT * FROM tblbug"
'open recordset and communicate with database that I want to perform sql inside my string and to do it in my database in my connection
ObjRS.Open strSQL, connection
'Print out the results, stop trying when there is null entered and keep moving to next record
Do Until objRS.EOF = True
<table>
<tr>
<td>Response.Write "Ticket Number =" & objRS("ticketID")</td>
<td>Response.Write "Date =" & objRS("date")</td>
<td>Response.Write "Description =" & objRS("description")</td>
</tr>
</table>
objRS.MoveNext
Loop
'Close and empty my record set and my connection
objRS.Close
Set objRs=Nothing
connection.Close
Set connection=Nothing
%>
</body>
</html>
Thanks in advance for your help!
While Not(objRS.EOF)
With Response
.write "<table><tr><td>Ticket Number ="
.write objRS("ticketID")
.write "</td><td>Date ="
.write objRS("date")
.write "</td><td>Description ="
.write objRS("description")
.write "</td></tr></table>"
End With
objRS.MoveNext
Wend
[ranainside.com...]