Newbies steveo123 Posted April 7, 2006 Newbies Posted April 7, 2006 I have 2 copies of a FileMaker 4 file. They are identical except they contain different records. Is there an easy way to combine the two AND eliminate any duplicate records? Thanks in advance!
-Queue- Posted April 8, 2006 Posted April 8, 2006 Create a relationship from one file to the other, based on the field determining uniqueness (if more than one field is required, create a concatenated calculation field in both files and then a relationship between them). Then, in the file with the relationship, call it fileA, create a script Find All Go to Record/Request/Page [First] Freeze Window Loop If [isEmpty(relationship::keyfield)] Go to Record/Request/Page [Exit after last, Next] Else Omit End If Exit Loop If [not Status(CurrentFoundCount)] This will leave you with a found set consisting of only records which do not exist in the other file, according to the field(s) determining uniqueness. From the other file, fileB, you can then import the found set. Note that you may need to update the serial (if there is one) for the imported records, if any of them match an existing serial in fileB. If this is necessary, be sure to update any child records which use the serial to link to a parent in fileB.
Recommended Posts
This topic is 6805 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now