Howdy,
I'm trying to make the life of a user easier; currently, they have to set a "commodity code" for each line/record in a form.
The commodity code is chosen based on the information in the description.
I want to create a snippet of code that checks whether the description in the next record(s) is the same as the one which was just set.
This is what I tried:
LtxtDescriptionCheck := Description;
REPEAT
IF LtxtDescriptionCheck = IntrastatJnlLine.Description THEN BEGIN;
IntrastatJnlLine."Tariff No." := LtxtDescriptionCheck;
END;
Rec.NEXT
However, this doesn't work. How can I do this?
Dan
Comments
Your code is (I have no words for it), so I just ignore that for my code snippet.
I'd try
Some problems with your code