Article ID: 170368
Article Last Modified on 1/8/2003
Dim cn As New UserConnection1
Dim rs as rdoResultset
cn.EstablishConnection 'establish connection
cn.rdoQueries("Query1").CursorType = rdOpenKeyset 'define cursortype
cn.Query1 'execute the query
Set rs = cn.LastQueryResults
Private Sub Command1_Click()
Dim cn As New UserConnection1
Dim rs As rdoResultset
Dim ColSize As Long
With cn
.EstablishConnection 'Establish connection
' **** Un-comment the following line to change default cursor to Keyset
' .rdoQueries("Query1").CursorType = rdOpenKeyset
' ****
.Query1
End With
Set rs = cn.LastQueryResults
If rs!pr_Info.ChunkRequired Then
ColSize = rs!pr_info.ColumnSize
Text1.Text = rs!pr_info.GetChunk(ColSize)
Else
Text1.Text = rs!pr_info
End If
rs.Close
cn.Close
End Sub
166281
: HOWTO: Create and Implement a UserConnection
153238
: HOWTO: Use GetChunk and AppendChunk Methods of RDO Object
Additional query words: kbVBp500 kbVBp600 kbVBp kbdse kbDSupport
Keywords: kbprb KB170368