My report for the purchase order give the following error:
The expression code cannt excuted a typeconversion to an option value.
The line which is causing this is:
IF relkenmerk.GET("Purchase Header"."Job No.") THEN;
relkenmerk is the table "Contact Feature Type"
i want to connect Contact Feature Type.Code with the purchase header. this fields has to match because i want to use the remarks which is in this table.
What i am doing wrong
0
Answers
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Relation Type,Code,Line No.
Relation Type,Code,Feature Group,Feature
Relation Type,Feature Group,Feature,Code
use
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I don't hope i need to set a jobnr there, want that is every time different.
My code so far, with your advice:
IF "Purchase Header"."Buy-from Vendor No." = 'L1134' THEN BEGIN
relkenmerksoort.RESET;
relkenmerksoort.SETRANGE("Purchase Header"."Job No.");
IF relkenmerksoort.FINDFIRST THEN;
"Purchase Header"."Your Reference" := relkenmerksoort.Remarks;
END;
do you have "Job No." field in Purchase Header table?
if yes,
is your code same as what i suggested?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
But your option is working. I thank you very much!
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav