Checking a range of dates
hey guyz.. if lets say that i got
hey.. if i got 2 parameters.. one is the starting date. the other parameter is the range that the user selected..
1st param - starting date
2nd param - 6 months down the road
how do i search the report starting from the first date and then search for records 6 months down the road
Re: Checking a range of dates
You can pass two parameters like so...
VB Code:
moReport.ParameterFields.Item(1).ClearCurrentValueAndRange
moReport.ParameterFields.Item(1).AddCurrentValue dStartDate
moReport.ParameterFields.Item(2).ClearCurrentValueAndRange
moReport.ParameterFields.Item(2).AddCurrentValue dEndDate
How are you opening your report and setting the datasource?
Re: Checking a range of dates
i mean in the crystal report itself
how do i set it to search for a date range
like starting from the beginning of the year to 6 months down the road?
Re: Checking a range of dates
Use the record selection formula editor then.
Re: Checking a range of dates
yiah..
whats the coding for it?
like i start from date x.. then i want to search 6 months later..
how do i set the coding for the 6 months....