what am I doing wrong here put fld "total" into ttotal put fld "paymenttype" into tpayment switch "tpayment" case "credit" if tpayment contains "credit" then put ttotal into fld "CreditDb" exit switch case "cash" if tpayment contains "cash" then put ttotal into fld "cash2" exit switch end switch Liam Lambert liamlambert at mac.com IRELAND