SalesShptHeader.RESET; SalesShptHeader.SETCURRENTKEY("Sell-to Customer No.","No."); --> 1st SalesShptHeader.SETRANGE("Sell-to Customer No.","Sell-to Customer No."); IF "Bill-to Customer No." <> '' THEN SalesShptHeader.SETCURRENTKEY("Bill-to Customer No."); --> 2nd SalesShptHeader.SETRANGE("Bill-to Customer No.","Bill-to Customer No.");Thank you.
Answers
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Is that good also for SQL Server DB?
OR maybe it is better to add new key: "Sell-to Customer No.","Bill-to Customer No."?
OR just like before, just change the key, at the time it is needed?
Thank you Kamil.
Andwian
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Andwian