Jump to content

Recommended Posts

Posted

I purchase lists of businesses (name, phone, address, etc...) and import them into a FM 6 file. Each list has a SIC and SIC_Name for each business. However, there are some businesses on the list (like city governments, Post Offices, public schools, churches, etc...) that I want to delete or just not import.

I have a FM 6 database "SIC_Delete" containing the SIC and SIC_Name for the records I don't want. How do I use "SIC_Delete" as a filter to delete these records, or just not import them in the beginning? The SIC field contains eight digits; however, the first four are the only ones that matter. For example, I do not want any records where the field value of SIC is in the range of 86610000 to 86619999. (8662 begins a new industry, and may be one that I want to keep.)

Thanks in advance for any help!

Rick

Posted

You could make a relation SIC::SIC from your import target file to SIC_Delete,

and then a calculated field:

SICRelation::SIC

This would evaluate to "1" (true) for matching records. So then Find all the 1's and delete all.

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.