![]() |
problem with delete row in reportcontrol |
Post Reply ![]() |
Author | ||
Guillermo ![]() Newbie ![]() Joined: 08 September 2006 Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() Posted: 24 April 2007 at 12:57pm |
|
I use the following command for fill and delete row in reportcontrol
call addrecordwndr ' sub for add records to report control wndReportControl.Populate
Report control status is: add 5 records (A,B,C,D,E ) is OK, show report control with 5 records is OK.
I read the report control with:
i=0
For Each Fila In wndReportControl.Records
Label5.Caption = wndReportControl.Records(i).Item(2).Value . .
.
next
read is OK.
when i execute again,
wndReportControl.Records.DeleteAll
call addrecordwndr ' sub for add records to report control wndReportControl.Populate AND Now, Addrecordwndr only add 4 record (B,C,D,E)
Show this 4 records is OK.
BUT,
i=0
For Each Fila In wndReportControl.Records
Label5.Caption = wndReportControl.Records(i).Item(2).Value the result is label5.caption="A", WHY? this row is not showing in reportcontrol.
The reportcontrol only show 4 record "B", "C", "D" and "E"
|
||
![]() |
||
pcmaker ![]() Groupie ![]() ![]() Joined: 05 May 2005 Location: Venezuela Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
|
FOR EACH DELETE, USE A POPULATE.
TRY IT, AN ADISEME WHAT HAPPEND! GOOD LUCK!!! |
||
![]() |
||
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
|
For Each Fila In wndReportControl.Records -- i is not changed there. Look below:
-- 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 |