Iteration of date field crystal reports - crystal-reports

Im pretty new to crystal reporting ,I need a formula to to iterate through the date field.All it took is a date field as dynamic input-{?startdate}
I need the page should display 30 days/date from that dates in reports..(I got to display other data to pull in between these date fielded captions.)This is a quick requirement ,I know i should have made some investigation before posting here..Any help is greatly appreciated.Thanks!

You can do two things:
Set your date parameter to allow for range values (user enters start date and end date)
Add 30 days to the day of your chosen date datefield in [{?startdate}, DateAdd('d', 30, {?startdate})]
Hope that helps,
Chris

Related

MS Access: Show string in the date field when empty

I'm looking to have my field show "dd-mmm-yy" when a date is not entered into the field, so members don't get confused and frustrated when they try to put in a date such as 11/12/20 and don't realize it needs to be in day day, month month month, year year format. Is this possible to do through the property sheet?
[date format]
You can set the Format property of the textbox to:
dd-mm-yyyy;;;"dd-mm-yyyy"
though I believe it will add more confusion than help.
Another method for speedy input of dates is shown in my article:
Entering ISO formatted date with input mask and full validation in Microsoft Access

Getting Start Date and End date of a Crystal Report

Good day guys,
I have several reports generated using Crystal report with a Date Range value and I need to get the formular for the Start date and End date of the report
Several reports has been generated using Crystal Report. I have used the Minimum() and maximum() formulars to get the Start date of the range and also the end date of it. But it is only picking the start date for the two reports.
minimum({Dttable.Order_date})
I expect the Output to be that if the date range selected is
01/07/2019-31/07/2019
Output should be start date 01/07/2019
end date 31/07/2019
I got a way Around.
I had to use it as formular and not under RunningTotal

Crystal reports date functions and formula

I'm not even sure how to start writing this logic. I have help desk issues in a SQL database with a create date and a resolved date columns. I'm trying to display only the records in which their create date is 14 days or less than the resolved date. Right now the report prompts for the start date and end date. Now I want to modify it. How do I write this logic and in which section of the formula builder? I'm using CR 2011 Standard.

Crystal Reports 2011 time -24 hours

I have created a report that pulls all the data from the previous day's production. The problem with that is our operations is two shifts and information from second shift is entered around 230 AM the next morning (ex. production was the 15th, but they didn't enter data until 16th at 230AM).
This is the formula that I used:
date({REJECTS.PROD_DATE})=dateadd('d',-1,currentdate).
I tried this formula with the same results: date({REJECTS.TIME_STAMP})=dateadd('h',-24,currentdatetime).
I have verified that REJECTS.TIME_STAMP is a datetime field.
Any help would be great,
Thanks
Trevor
Add this to your report's record-selection formula:
// timestamp should be new than 24 hours before the current date/time (calculated dynamically)
{REJECTS.TIME_STAMP} >= DateAdd("h", -24, CurrentDateTime)
// include other restrictions as necessary
AND ...
My approach would be:
Create a String parameter and give default values for 24 hours... in the required format (either half hour format or Hour format).
If you require check the link for parameters.
2 use below formula in Record Select Expert
{REJECTS.TIME_STAMP}>=Cdatetime(Cdate(dateadd('d',-1,currentdate)),Ctime({?tme})) and
{REJECTS.TIME_STAMP}<Cdatetime(CDate(dateadd('d',0,currentdate)),Ctime({?time})) and
Now when you run the report you will be prompted for time.. select the time and you query will be formed as required by you.

Grouping Expert, Current date against start date

I am having trouble grouping certain results in a work in progress report that arranges by start date, I have grouped using fixed values before but because the dates keep moving I am unsure what to do.
The start date is WIP_Schedule.Start_Date
the groups I am trying to create are:
[Group1] Overdue = the current date has passed the start date.
[Group2] (Yet to be named) = the current date 2 week period prior to the start date
[Group3] To Do = the current date after the two week period prior to the start date.
I am after a works instruction on how to achieve this.
I know this isn't a lot of information, if you require any more please ask.
Thanks,
Daniel
This is a pretty straightforward requirement, so you should be able to figure it out by searching the web. However, I'll give you part of the answer and hopefully you can figure it out.
Start by creating a formula to figure out the status of the date.
If {WIP_Schedule.Start_Date} > current date then "Overdue"
Else......
Then you can group based on that formula. All you have to do is figure out the rest of the formula.