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

Showing Today & Yesterday

Showing Today & Yesterday

(OP)
I have a report that is pulling on when an order was picked. It's running daily at 6am. I want it to pull anything picked today and yesterday. For some reason I cannot think of how to do this. I did a quick formula but it's taking the report a big longer to run which I think is because I don't have a lot of other criteria to pull on so it's looking at everything to try to get those dates. I know in the select expert you can choose a period but of course there isn't one for this. I wanted to do a quick formula right there but all I can think of is {oeeh1.pickeddt} = today-1. That shows yesterday but not today. I want it to be today and -1. Or yesterday +1.

RE: Showing Today & Yesterday

In Select expert

{oeeh1.pickeddt} >= today-1
and
{oeeh1.pickeddt} <= today

RE: Showing Today & Yesterday

(OP)
It was that easy!? Why didn't I think of the "and". I'm such a dork. I totally overthought it. Thank you! I'm all set...and need a vacation I think. :)

RE: Showing Today & Yesterday

Or like this:
{oeeh1.pickeddt} in today-1 to today

Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guides to Formulas, Parameters, Subreports, Cross-tabs, VB, Tips and Tricks
http://www.kenhamady.com/

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