| re: Dataset / Datatable in Visual Developer 2008
Thank you for the answer.
It looks as the same functionality, I get from:
databindingsource.movenext() or databindingsource.movelast()
What I really want is
"move to the record, where Key=something"
In Access2000 I did it this way:
Dim rs As DAO.Recordset
Set rs = Me.Recordset.Clone
rs.FindFirst "MemberId = " & someValue
Me.Bookmark = rs.Bookmark
rs.Close
All in all I still have some trouble working with datasets programmatically.
How do I eg adress values in the 'current record' in a dataset.datatable ?
I have a form with a dataset - showed in a datagrid. I can use the grid to navigate the recordset, but how do I access the dataset, when I need a value stored in the dataset ?
In Access I do it like this:
value=recordset.fields!fieldname or
value=me.recordset.fieldname
The search-problem above could be described:
dataset.movefirst
while dataset.currentrecord.keyvalue<>mykeyvalue and not eof
dataset.movenext
end while
if not eof then
doSomeThing(dataset.currentrecord.keyvalue)
end if
ravno
|