Ok john sorry if you are using table buffring on your tables the the code should look a little different.
LOCAL llret, locustomer, loaccount
locustomer = CREATEOBJECT(«your customer object»)
loaccount = CREATEOBJECT(«your account object»)
llret = locustomer.Add(custID, custname)
llret = llret AND loaccount.Add(custid)
and in the method add if anything fails then you should do a tablerevert before returning .f.
Alexandre Palma
Senior Application Architect