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

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

Recommended Posts

Posted

I have a database of 35,000 customers. I am tiring to get a single field (customer name) of 250 customers/records to export into a csv or tab file. so that the file looks like:

joe blogs

sam smith

jon johns

bill south

joe wiggin

ect

I want to take the first 250 names then the next 250 then the next 250, ect for the whole 35000. So instead of doing:

omiting 250 records

show omited

export field name

delete found records

omiting 250 records

show omited

export field name

delete found records

omiting 250 records

show omited

export field name

delete found records

omiting 250 records

show omited

export field name

delete found records

140 times to get all the customers names broken up into 140 csv files. I am looking for a script or some other way that would omit 250 records, show omited, export field name, delete found records or something like that for the whole 35000 customers. Please help!

Posted

  • Copy your current database to a new file, then edit new file as follows:

  • Export any number of records to a temp file to setup the file format you want to export to and your field export order.

  • Define a new field
    New1 as a calculation = Get ( RecordNumber ); Set Storage option to - Do Not Store Calculation Results

  • Make a new script:
    loop
    ...Show All Records
    ...Perform Find - Specify that New1 < 251
    ...Export Records - check Perform without Dialog, Specify your export order
    ...Delete All Records
    End Loop

  • Run the script. you will have to name each file but it will export 250 records at a clip.

Posted

McBain:

Get(RecordNumber) in FMP7 is equivalent to Status(CurrentRecordNumber) in FMP 6.

-Stanley

This topic is 7256 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.