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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

conditional select formula

Status
Not open for further replies.

rbenson1

Technical User
Jun 26, 2009
4
US
I have a custom paramater that has several defined values that a user can select. Then I have a formula that uses a select statement to determine what the user selected and run the appropriate select formula.

How can I have one of the case blocks not perform any record selection and return ALL records?


Code:
Code:
select {?Dates}
case 1:
  'Show all dates, this is the one I cant figure out
case 2:
  {@GroupDate} in WeekToDate
case 3:
  {@GroupDate} in MonthToDate

Any help is appreciated, Thanks!
 
Hi,
use a default date as Case 1 that is an obvlious 'flag' to return all ( the Description could be ALL :
Then
Code:
select {?Dates}
case 1:
  True 
case 2:
  {@GroupDate} in WeekToDate
case 3:
  {@GroupDate} in MonthToDate


[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Thanks Turkbear, works like a charm. I knew the solution was easy, I just couldn't drum it up...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top