Hi There,
I want to transfer the value of a boolean field from the ItemTable to the same boolean field in the SalesLineTable.
(Fieldnumbers are different in both tables)
For instance: when I insert a line in the SalesLineTable it should transfer the value from the Itemtable to the SalesLineTable.
I Put the following code In the OnInsert section in the SalesLineTable:
IF Item.GET("No.") THEN
SalesLineTable.Fieldname := ItemTable.Fieldname;
What am i doing wrong ?
I appreciate your help.
Answers
IF Item.GET("No.") THEN
SalesLineTable.Fieldname := ItemTable.Fieldname;
IF Item.GET("No.") THEN
SalesLineTable.Fieldname := Item.Fieldname;
Thanks for your reply.
I allready found out what went wrong.
After i confirmed the line in the salesline table (arrow down) the value was tranferred correctly.
Thanks anyway.
http://www.BiloBeauty.com
http://www.autismspeaks.org
I also tried your suggestion and I must say this works better then my code.
I 'll do it your way !
Thank you too...