Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6805 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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!

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.