Thanks for fast answer
the tblPaying has 2 fields: PayingMethod, Price and also on form there are two same objects. field PayingMethod is lookup column that has: Cash, Cash on credit, Credit card, credit card on credit
For each of these paying methods the price is different.
The function...