Hi,
I hope somebody can help. I have been trying to use the GetRows method but it only seems to work when there are no constants assigned.
aGetElement = rs_zgl_element.GetRows()
This works and I can select any array element I need from aGetElement. I can use Lbound, Ubound etc etc. In this case the recordset has in effect 2 columns and 197 rows. Column names are converted (int), name (varchar).
aGetElement = rs_zgl_element.GetRows(numRows, startRow, converted)
This doesn't work
I have checked to make sure that numRows, startRow are valid. 'converted' is the name of the field I want the data from in the recordset. I have also tried,
aGetElement = rs_zgl_element.GetRows(numRows, startRow, "converted")
but this does not work either.
Replacing numRows & startRow with integers 92 & 21 respectively does not work.
The error I get regardless is
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
I have looked for reasons why but there seems to be little info around about using GetRows with this syntax.
Any help would be much appreciated.
Thanks