There is no unique ID field that is duplicated in both
tables. The fields that I previously listed are the only
fields that will be duplicates and none of them are unique
ID fields. Although each table does have a unique ID
field, they are not duplicates of each other.
Jean
>-----Original Message-----
>For duplicates in 2 different tables, if there is a
unique ID field in both of the tables
>that is also duplicated you could just link the 2 tables
on that field. The only value
>that will be returned are those where both tables match.
>
>--
>Wayne Morgan
>Microsoft Access MVP
>
>
>"Jean" <(E-Mail Removed)> wrote in message
news:04e401c3a920$7d75ddf0$(E-Mail Removed)...
>> Thank you for the response.
>>
>> The 'Find Duplicates' wizard only allows you to find
dups
>> in one table as far as I can tell. I want to find the
>> records in one table that are already in another table
>> before I append them to that table.
>>
>> The destination table contains all records that have
>> previously been imported. Therefore I want to catch
>> records that have already been imported before I append
>> the newest imported records to the destination table.
>>
>> I am performing other processes on the imported data
>> before I append it to the destination table so I need to
>> do the deletion at a specific step in the process before
>> the append.
>>
>> Jean
>>
>> >-----Original Message-----
>> >In the query tab of the Database window, click the New
>> button and choose the
>> >Find Duplicates option. This should get you started.
You
>> will probably have
>> >to massage it a bit because it isn't a dupe if not all
>> the fields match.
>> >
>> >Next, you said that you wanted to delete records before
>> appending. If you
>> >are going to do this, you will probably want to call
the
>> queries from code
>> >and wrap them in a Transaction so that if the append
>> fails, you can undo the
>> >delete. Otherwise, do the append first then delete the
>> dupes. The 2nd way
>> >may be what you're doing, but the way you worded it I
>> wasn't sure (how do
>> >they already exist if you haven't appended them yet?).
>> >
>> >--
>> >Wayne Morgan
>> >Microsoft Access MVP
>> >
>> >
>> >"Jean" <(E-Mail Removed)> wrote in message
>> >news:163a01c3a89a$c4cd3a80$(E-Mail Removed)...
>> >> I am working with an Access 2000 database. I import a
>> text
>> >> file into a table, add some calculated fields to the
>> >> records, then append the records to a different
table.
>> >> After the records are imported, I delete all records
>> from
>> >> the original table.
>> >>
>> >> My problem is I want to delete the records from the
>> >> original table that already exist in the destination
>> table
>> >> before I append them.
>> >>
>> >> The fields that I need to compare are:
>> >> Type (1-4)
>> >> ChkNum (number)
>> >> OnPad (date & time)
>> >> OffPad (date & time)
>> >> Start (date & time)
>> >> End (date & time)
>> >> Total (imported as text, converted to Currency during
>> >> append)
>> >> StrID (number)
>> >>
>> >> The Type, ChkNum, Total, and StrID are the only
fields
>> >> that are consistently populated.
>> >>
>> >> If I create a query that joins all of the fields
listed
>> >> above, I only get the duplicate records that have all
>> >> fields populated.
>> >>
>> >> Any suggestions?
>> >>
>> >> Thank you,
>> >> Jean
>> >
>> >
>> >.
>> >
>
>
>.
>
|