Ok, I finally solved my own problem... a good nignts sleep did the work!AND as usually I made the problem bigger than it was, that is SO me This works:if ((formulär1.Huvud.Table1.Row3.Cell23 -(formulär1.Huvud.Table1.Row3.Cell24 +formulär1.Huvud.Table1.Row3.Cell25)) < 0)then 0else(formulär1.Huvud.Tab...