INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Crystal Report 9 current date comparison

Crystal Report 9 current date comparison

(OP)
Hi all;

I am writing a report and would like to do compare a File date field to the current date in order to tell if the current date is less than the File date field. Is there a formula I can write to accomplish this?


Thank you
Rosesmile

RE: Crystal Report 9 current date comparison

I found an article that describes on to get file information into a report. I have never tried this. Once you get the file date, then you should be able to do a comparison.

RE: Crystal Report 9 current date comparison

Not sure I understand what you are trying to do (or kray4660's response for that matter).

Are you still looking for a solution? If so, can you provide a bit more detail please. Eg, are you trying to return records based on the outcome of the comparison, of to simply flag certain records.

If you want to flag those records where the "... current date is less than the File date field ..." you could use a formula along the lines of:

CODE --> {@Date_Test}

If 	{Table.Your_Date_Field} < CurrentDate
Then 	'Y'
Else	'' 

Hope this helps

Cheers
Pete

RE: Crystal Report 9 current date comparison

I think RoseDCyst is wanting to pull a file date from a file in a folder. I found an article that shows how to put file information from a folder (I forgot to include the link, I will look for it in a few minutes).

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close