Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying Month data from a Parameter

Status
Not open for further replies.

rwn

Technical User
Dec 14, 2002
420
US
I'm starting with this forumla:
Month ({@TransDate}) = Month ({?Pm-?EndDate}).

But what is desired: when a user enters in a Date in {?Pm-?EndDate}) ONLY the values in the @TransDate(this formula converts a datetime to a date) that are within the Month of the date entered are displayed.

For example: if a date of 3/31/2010 is entered then all the dates for the 3/31/2010 to 3/1/2010 are shown; if a date of 3/15/2010 is entered than all the dates from 3/15/2010 to 3/1/2010 are shown for 3/2010. I hope this makes sense.
 
This selection formula should do what I think you're looking for:

{@TranDate} in date(year({?EndDate),month({?EndDate),1) to {?EndDate}



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top