Bill,
>Thanks for your answers. When I stepped thru I found that my validation rules weren't checking for the deleted status on the rowset. This is the code actually throwing the exeception:
>this.ValidateName(dr["cname1"].ToString());
Right...so, if you turn off ImmediateDelete you have to make sure all code you write checks a DataRow's RowState before attempting to access its data. There are some code samples that demonstrate how to do this in the MM .NET Dev Guide topic "ImmediateDelete: Immediately Deleting from the Database".
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com