TestTable
No. Customer No.
1 10000
2 20000
3 20000
4 30000
on a Push button I want 3 MESSAGE (FOR EXAMPLE)
'1000'
then
'2000' (once)
then
'3000'
Please Help
CustNo := TestTable."Customer No.";
TestTable.SETRANGE("Customer No.");
TestTable.SETFILTER("Customer No.", CustNo);
IF FINDSET THEN
REPEAT
MESSAGE(CustNo);
UNTIL TestTable.NEXT =0;
Clear(Custno);
0
Comments
In the code...
2) Set the key ["No.","Customer No."]
3) loop using repeat.....until
4) message out in the above loop if current "Customer No." <> previous "Customer No."
(Use a variable to keep track of previous "Customer No.")
I hope it helps ....... O:)
Technical Consultant, MS Dynamics NAV
2. search the forum for the word "distinct"...you should find some topics that solve your problem
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Correct my code please,
there is no result
Technical Consultant, MS Dynamics NAV
I would appreciate if, while quoting you can differentiate between the quoted text by somebody else and the things you want to write. I mean, avoid altering or modifying somebody's post while quoting.
for a good example to how to quote see http://www.mibuso.com/forum/viewtopic.php?t=27110
Technical Consultant, MS Dynamics NAV
every time the same problem :?:
yup, the code you wrote didn't work
you'r right, sorry for that!
You must it "transfer" to your specification.