RemoveRecordEx |
Post Reply |
Author | |
nvierros
Groupie Joined: 02 July 2006 Location: Australia Status: Offline Points: 44 |
Post Options
Thanks(0)
Posted: 16 January 2008 at 7:52pm |
Hey guys,
Small issue i need help with. Im using RemoveRecordEx to delete items from the report control. Im trying to do this with multiple selections but it does not seem to work correctly. Here is my code: dim i as long for i = 0 to reportcontrol.selectedrows.count - 1 reportcontrol.RemoveRecordEx reportcontrol.selectedrows(i).record next This works ok for the first record, but im assuming because the reportcontrol updates its internals, selectedrows will change. Is it possible to do this without using the .populate method as i want to keep the view state??? Thanks in advance Nick |
|
wlcabral
Groupie Joined: 25 April 2007 Location: Brazil Status: Offline Points: 72 |
Post Options
Thanks(0)
|
Start from bottom to Top. for i = reportcontrol.selectedrows.count - 1 To 0 Step -1
|
|
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 |