C
cefrancke
I would like to get a certain number of rows of data from a subform
datasheet.
I figured using Me.Forms.RecordsetClone.GetRows() to get the data in a
variant.
Access 2000 help shows....
Dim rs As Recordset
Set rs = Me.Form.RecordsetClone
I get a "Data type mismatch" error, even if I use ADODB.Recordset.
Why is the help wrong, or is it?
Continuing...
I used the following...
Dim aID as Variant
With Me.RecordsetClone
aID = .GetRows(10)
end with
This worked, but it gives me all the fields, starting at what seems to
be a random row.
I would like to get say 10 records starting from the current record or
even an actual record number...
So I tried....
aID = .GetRows(10, Me.Bookmark)
but I get "invalid argument", or even....
aID = .GetRows(10, , Fields:=Array(2)) 'Args are optional
Near straight out of a Ken Getz reference, "Named arg not found"
What's going on here?
TIA
datasheet.
I figured using Me.Forms.RecordsetClone.GetRows() to get the data in a
variant.
Access 2000 help shows....
Dim rs As Recordset
Set rs = Me.Form.RecordsetClone
I get a "Data type mismatch" error, even if I use ADODB.Recordset.
Why is the help wrong, or is it?
Continuing...
I used the following...
Dim aID as Variant
With Me.RecordsetClone
aID = .GetRows(10)
end with
This worked, but it gives me all the fields, starting at what seems to
be a random row.
I would like to get say 10 records starting from the current record or
even an actual record number...
So I tried....
aID = .GetRows(10, Me.Bookmark)
but I get "invalid argument", or even....
aID = .GetRows(10, , Fields:=Array(2)) 'Args are optional
Near straight out of a Ken Getz reference, "Named arg not found"
What's going on here?
TIA