Solved

Crystal Reports How to utilize Current Date

Posted on 2011-09-20
7
319 Views
Last Modified: 2012-05-12
I am trying to schedule a report that will extract data based upon a date parameter.  I would like the report to get the current date and use it for the run-date parameter.  How is this done?  I am using Crystal Reports 10
Thanks
0
Comment
Question by:mbroad02
  • 4
  • 2
7 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 36567331
Set the record selection formula to something like..

{table.Datefieldname}=Currentdate

There can be lots of issues with dates; if this doesn't work as you expect we shall need to know the database type and  the field datatype to get further.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 36567596
DO you mean to use the current dat as the default value?

How are you running the report?

mlmcc
0
 

Author Comment

by:mbroad02
ID: 36567721
I am going to set the report up as a scheduled report, so I want the date in the record, which is a datetime to select based on current date (I guess I need to trim the record datetime field so that it doe not try to compare the datetime to the current date (remove time).
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:mbroad02
ID: 36567819
Don't know if I was clear in last post:  I wish to select data records matching data-records date to Currentdate.

The data-record date is actually a datetime field.  Therefore I would probably have to trim off the time and just make it a date field...
Hope that is clearer!
:)
0
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 36567824
Then use a selection rule of..

{table.Datefieldname}>=Currentdate and {table.Datefieldname}<Currentdate +1
0
 

Author Comment

by:mbroad02
ID: 36569319
Once I pared my datetime field to date only, the above worked just fine.

Thanks very much!
0
 

Author Closing Comment

by:mbroad02
ID: 36569322
Thanks
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This video discusses moving either the default database or any database to a new volume.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now