![]() |
Need to get value from particular Row |
Post Reply ![]() |
Author | |
cybeh ![]() Groupie ![]() ![]() Joined: 27 December 2005 Location: Malaysia Status: Offline Points: 76 |
![]() ![]() ![]() ![]() ![]() Posted: 27 June 2006 at 11:26am |
Hi all,
I have the index for particular row, and I would like to get the value from record..may I know how.... dim lUseRecord as long lUseReord = wndReportControl.SelectedRows.Rows(0).index 'So, I have the index here now, wut if I would like to do something like this myID = wndReportControl.Rows(lUseRecord).Record.Item(0).value this code return me error.... Please advice. |
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Wouldn't it be enough to write: wndReportControl.SelectedRows.Rows(0).Record.Item(0).value ?
And note that if you have grouping enabled, the first row might not have corresponding Record because it could be a Group row -- check Report for Nothing before accessing its properties. -- WBR, Serge |
|
![]() |
|
cybeh ![]() Groupie ![]() ![]() Joined: 27 December 2005 Location: Malaysia Status: Offline Points: 76 |
![]() ![]() ![]() ![]() ![]() |
Hi, I can't do this. This is due to, I might want to get some previous selected row value and not current selected row.
|
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Ok, I see.
In this case I'd recommend to store Index of the Record, not the Row.
-- WBR, Serge |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |