Rick,
>The rows are all added successfully to the dataset, but when SaveDataSet is called, it using the same value for ID, and therefore the following error is generated
>
>Column 'ID' is constrained to be unique. Value '36' is already present.
Is 36 correct for the first record saved or is it completely wrong?
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