mcbain1212 Posted January 11, 2005 Posted January 11, 2005 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!
SBG Posted January 11, 2005 Posted January 11, 2005 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.
mcbain1212 Posted January 12, 2005 Author Posted January 12, 2005 SBG I am using FMP 6 not 7 and the Get ( RecordNumber ) is not an option? Can you rewrite this for fmp6? Thanks
stanley Posted January 12, 2005 Posted January 12, 2005 McBain: Get(RecordNumber) in FMP7 is equivalent to Status(CurrentRecordNumber) in FMP 6. -Stanley
Recommended Posts
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