Author Topic: TBufdataset CopyFromDataset and AutoInc fields  (Read 308 times)


  • New Member
  • *
  • Posts: 28
TBufdataset CopyFromDataset and AutoInc fields
« on: February 23, 2020, 02:50:52 pm »
I'm writing a simple database app for personal use using TBufdataset. One field in my tables is an AutoInc field type. There's a point in the app where I use CopyToDataset to copy data from one table into another. However, the values of the AutoInc field in the table where the data is copied to does not align with the same records in the original table. It appears to autoinc that value when copying the data instead of copying the original value. I've tried making sure there is no sorting (no IndexFieldNames, etc.). Any ideas to get around this? I suppose I could just make that field an integer and write my own procedure for autoincrementing that value.


TinyPortal © 2005-2018