Copy record to same table?
Posted: 11.04.2013, 21:48
Hi All,
Is there an easy way to copy a record o the same table?
I have an SQLite database that the user may often want to have almost the same stuff in another record, and just change one or two fields.
Is there something like BatchMove that I can copy all but the AutoInc field? There are no no unique, cannot be blank etc conflicts.
I know I can write a
...fieldbyname.AsString = ...fieldbyname..
for something like 120 fields but would rather just use something like CopyRecord(tblFrom, tblTo
Thanks
Is there an easy way to copy a record o the same table?
I have an SQLite database that the user may often want to have almost the same stuff in another record, and just change one or two fields.
Is there something like BatchMove that I can copy all but the AutoInc field? There are no no unique, cannot be blank etc conflicts.
I know I can write a
...fieldbyname.AsString = ...fieldbyname..
for something like 120 fields but would rather just use something like CopyRecord(tblFrom, tblTo
Thanks