Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Public Sub OpenRecordset(ByRef rs As ADODB.Recordset, ByVal sql As String)
Set rs = New ADODB.Recordset
rs.Open sql, m_cn, adOpenKeyset, adLockPessimistic, adCmdText
End Sub
Public Sub CloseRecordset(ByRef rs As ADODB.Recordset)
On Error Resume Next
rs.Close
On Error GoTo 0
Set rs = Nothing
End Sub
Dim TestRS As ADODB.Recordset
Dim sql As String
sql = "select * from testtable where rec < 5"
SQLUtils.OpenRecordset TestRS, sql
While Not TestRS.EOF
'work with the returned recordset here
Wend
SQLUtils.CloseRecordset TestRS