Skip to Content
author's profile photo Former Member
Former Member

Custom Date Range Parameter

Post Author: crystalmn

CA Forum: Crystal Reports

Using Crystal Reports XI is it possible to customize the date range parameter to only pull month and date and not look at the year? I want to use it to pull Employee Birthdays out of our GP database but it looks at the year as well.

Thanks!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 26, 2007 at 05:51 PM

    Post Author: SKodidine

    CA Forum: Crystal Reports

    Try this in your record selection:

    totext({table.birthdate},"MMdd") intotext(minimum({?DateRange Parameter}),"MMdd") to totext(maximum({?DateRange Parameter}),"MMdd")

    This should give you all matching birth days that fall between the date range parameter excluding the year.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.