Home All Groups Group Topic Archive Search About

Using ADO to duplicate records.

Author
6 Jan 2006 2:13 AM
iftbill
I need to know the best way to code using vba to read a few records from an
Sql database(one table), modify these records then add them as new records to
the same table.

Thanks,

Author
6 Jan 2006 6:25 AM
SriSamp
If VBA supports accessing a database, then you can read the records from the
table into a record set and then iterate over the record set and make your
changes. Finally, you can then insert each of these records into the table
again. There are 100's of examples of using ADO and RecordSet that you can
search for.
Show quote
"iftbill" <u17341@uwe> wrote in message news:59ee1038a99ec@uwe...
>I need to know the best way to code using vba to read a few records from an
> Sql database(one table), modify these records then add them as new records
> to
> the same table.
>
> Thanks,

AddThis Social Bookmark Button