Problem with repeat statement

Red-EagleRed-Eagle Member Posts: 107
I want on my estimate report from the comment line table all the records which have the same estimate no.


Voorwaardenrec.SETRANGE(Voorwaardenrec."Table Name",Voorwaardenrec."Table Name"::Estimate);
Voorwaardenrec.SETRANGE("No.","No.");
IF Voorwaardenrec.FIND ('-') THEN
REPEAT

UNTIL Voorwaardenrec.NEXT = 0;

I have no problem to get the first of last record in the table, but i dont get all the records at the same time on my report. The problem is (I think) that i have to put a statement between repeat and until. I tried serval things, but i didnt find the right one yet. Is there somebody who wants to help me with it.

Comments

  • bbrownbbrown Member Posts: 3,268
    Where are you placing this code in your report? Why would you not just use a DataItem to loop these records?
    There are no bugs - only undocumented features.
  • MBergerMBerger Member Posts: 413
    If this is a report, and you want all lines displayed, then why are you using code, and not a new dataitem with an appropriate link ?
  • Red-EagleRed-Eagle Member Posts: 107
    The reason why i dont do this, is that I want to put the records in estimate line header at the top of the first page after the fields No., discription etc are placed.
Sign In or Register to comment.