Syntax
| SQL.RunQueryLoadArray Query, MyArray[, MyArray2][, MyArray3][, Timeout]
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description
| Performs a query and loads the first column (and optionally 2nd and 3rd columns) into an array variable. All records are loaded into the array, with a maximum of 32767 rows.
| ||||||||||||
See Also
| other SQL.Runxxxxxxxx methodes, RunQueryLoadArray2D.
| ||||||||||||
Example
| Sub Main() Dim Query As String Dim myArr() As String Dim myArr2() As String Query = "SELECT Code, Omschrijving FROM Prm_OrderStatus" SQL.RunQueryLoadArray Query, myArr(), myArr2() Dim x As Integer For x = 0 To UBound(myArr) Debug.Print myArr(x) & vbTab & myArr2(x) Next x End Sub | ||||||||||||