Hi,
why touching existing records? their date (date_time value) will indicate
they are not the most recent anyhow, if a new one is in the database. To get
only the most recent records, take any of the four methods in
http://www.mvps.org/access/queries/qry0020.htm), and that automatically take
"un-care" of the old records, without any need to "mark" them as obsolete..
since they implicitly are, due to their date being older than the date of
another record.
Hoping it may help,
Vanderghast, Access MVP
> Hey!
>
[quoted text clipped - 17 lines]
>
> Thank you!
Patrick - 25 Jul 2006 21:44 GMT
Mike,
Thank you!
My problem is not one of being able to distinguish old from new records - it
is one of adding 150 almost identical records to a database. My hope was I
could use some sort of append query after isolating which records would be
almost duplicated and then an update query on the same record set to make the
minor changes.
I can accomplish all of this except create an append query which appends
copies of the 150ish records with new auto number fields to the database.
Am I making sense? LOL. I have roughly 150 addresses which need changes
like Street being changed to St. And I need to keep the old records for
history. So I thought I'd append copies of the 150ish records, and use a
variety of update queries to make the changes [to the fresh copied records].
I just can't figure out how to create an append query that copies existing
records in a file and appends them to the end of the database.
Thanks!
Patrick
> Hi,
>
[quoted text clipped - 30 lines]
> >
> > Thank you!
John Vinson - 25 Jul 2006 23:17 GMT
>I just can't figure out how to create an append query that copies existing
>records in a file and appends them to the end of the database.
Well, create an append query based on your table, and when asked what
table to append to, name the same table.
You just can't include the Primary Key in the append query (or the
records will be rejected for violating the unique key). If you have an
autonumber primary key, simply don't include it in the fields that you
select to append.
John W. Vinson[MVP]
Patrick - 31 Jul 2006 22:55 GMT
Ok. I'm embarassed by this one. No wonder I couldn't find it anywhere.
It's too stupid.
Thank you!
> >I just can't figure out how to create an append query that copies existing
> >records in a file and appends them to the end of the database.
[quoted text clipped - 8 lines]
>
> John W. Vinson[MVP]