What are you trying is confusing? Either it should be - IF BOM.GET(BOM."Parent Item No.",BOM."Line No.") THEN BEGIN StartDate := BeginDate; EndDate := EndDate; END OR BOM.SETRANGE(BOM."Parent Item No.",BOM."Line No."); // But the first line have fields not matching, one is code and other is integer. IF BOM.FINDFIRST THEN BEGIN StartDate := BeginDate; EndDate := EndDate; END Let us know if any questions.
↧