Try this:
Sub test()
Dim i As Long
Dim Ary
Dim strMsg As String
If Not rs.EOF Then
Ary = rs.GetRows
For i = 0 To UBound(Ary, 2)
If i = 0 Then
strMsg = Ary(0, i)
Else
strMsg = strMsg & ", " & Ary(0, i)
End If
Next i
MsgBox strMsg, , UBound(Ary, 2) + 1 & " records"
Else
MsgBox "No records returned.", vbCritical
End If
End Sub
The essential thing is that the array obtained from rs.GetRows has the
dimensions oppposite to what you would expect.
RBS