Chris,
I removed the lines. Please see the code below. Still has the error about the left-hand side
Erp.Tables.OrderDtl OrderDtl;
var ttInvcDtl_results = (from ttInvcDtl_Row in ttInvcDtl
where (ttInvcDtl_Row.RowMod == “U”) select ttInvcDtl_Row);
foreach (var ttInvcDtl_xRow in ttInvcDtl_results)
{
var Company = ttInvcDtl_xRow.Company;
var OrderNum = ttInvcDtl_xRow.OrderNum;
var OrderLine = ttInvcDtl_xRow.OrderLine;
var OrderDtl_Row = (from ttOrderDtl_Row in Db.OrderDtl
where (ttOrderDtl_Row.Company == Company) select ttOrderDtl_Row).FirstOrDefault();
ttInvcDtl_xRow.UDField<decimal>("RCTrkQty_c") = OrderDtl_Row.UDField<decimal>("RCTrkTtlQty_c");
//ttInvcDtl_xRow.UDField(“AveragePerRCTrk_c”) = OrderDtl_row.UDField(“AvgPrice_c”);
}
I have the line exactly the way you have in the comments above. Up to that point it works.