Avatar of purpleoak
purpleoak
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Crystal Report Date Range

im Running crystal Reports XI, i have a report wich connects to a mumps database and exports a load of data. The data it exports is the customer Id, Order number dispatch number and dispatch date. Now when i run the report it exports all orders ever placed, so it exports around 800,000 records. What i want is to export data that has the dispatch date within the last 7 days? the name of the table for dispatch date is;

       {MAIN_DESP0.DSPDTE}

i have looked around and am unsure where to start, as much detail as possible please.
Crystal Reports

Avatar of undefined
Last Comment
purpleoak

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
peter57r

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Mike McCracken

Another way would be to use the built in date range

{MAIN_DESP0.DSPDTE} IN Last7Days

mlmcc
purpleoak

ASKER
thanks peter57r that worked a treat, however it only works if i export all 800,000 entries then run the selection. Ultimately what im trying to achieve is export this data daily, hence i only the the most recent data, if i could get a way of exporting all the data automatically then run another report on that data to do the record selection?
peter57r

I'm afraid I don't understand your last post.

You cannot export more records than exist in the report and if you use a record selection rule fpr your report then those are the only records you have in your report.

I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
purpleoak

ASKER
Worked exactly how i needed it to work thank you for your help