Sage 100

 View Only
  • 1.  v5.1 Crystal reports - How do you default a date o

    Posted 08-21-2016 11:54
      |   view attached
    v5.1 Crystal reports - How do you default a date or date-time parameter to today's date?


  • 2.  RE: v5.1 Crystal reports - How do you default a date o

    Posted 08-21-2016 13:05
    If you click on the calendar, doesn't it default to today's date?


  • 3.  RE: v5.1 Crystal reports - How do you default a date o

    Posted 08-21-2016 13:08
    @ThereseLogeais Good point. Apparently the client doesn't like that possible one extra click.


  • 4.  RE: v5.1 Crystal reports - How do you default a date o

    Posted 08-22-2016 05:14
    Set your parameter to the End Date Only, then set a manual formula for selecting records which uses the current date through that End Date. Something like this: {IM_ItemTransactionHistory.TransactionDate} >= currentdate and {IM_ItemTransactionHistory.TransactionDate} <= {?EndDate}


  • 5.  RE: v5.1 Crystal reports - How do you default a date o

    Posted 08-22-2016 10:51
    I use a ""hasvalue"" formula: if hasvalue ({?ReportDate}) then {?ReportDate} else currentdate


  • 6.  RE: v5.1 Crystal reports - How do you default a date o

    Posted 08-22-2016 10:52
    (The parameter needs to be set to optional too I believe).


  • 7.  RE: v5.1 Crystal reports - How do you default a date o

    Posted 08-22-2016 11:16
    Is hasvalue a Crystal reserved word?


  • 8.  RE: v5.1 Crystal reports - How do you default a date o

    Posted 08-22-2016 11:23
    Yes. From the CR help files: Basic and Crystal syntax. Arguments Parameter field Returns Boolean Value Action Evaluates the parameter value passed as the argument and returns TRUE if it has a value, FALSE if it has no value.


  • 9.  RE: v5.1 Crystal reports - How do you default a date o

    Posted 08-22-2016 12:21
    Thanks. I will give it a try.