I'm trying to show the Order Date from the Purchase Header table in a form based on the Purchase Line table. Using the following code I get an error: "The expression Code cannot be type converted to a Option Value"
If PurchaseHeader.GET(PurchaseHeader."No.") THEN
HeaderDate := PurchaseHeader."Order Date";
If I try
If PurchaseHeader.GET(PurchaseHeader."No."::"Document No.") THEN
HeaderDate := PurchaseHeader."Order Date";
...I get "The text 'Document' is too long. The text in code fields can have a maximum length of 2 characters"
What am I doing wrong?
Thanks in advance for the help.
Comments
-use the purchaseline and not the header as a parameter (this doesn't give your error)
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!