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

Date Parameter Question

Status
Not open for further replies.

fmrock

Programmer
Sep 5, 2006
510
0
0
US
I have a report that contains several different date fields. I would like to get the user the ability to choose which date field the date parameter selects from. What would be the best way to do this?

Thanks,

 
Hi,
Best way is often hard to determine, but one way would be to create an additional parameter with the field names as the displayed text and a number as the data vaue, then use a selection formula something like:
Code:
If {?fieldname} = 1 then
 {DateField1} = {?DateParameter}
else
If {?fieldname} = 2 then
 {DateField2} = {?DateParameter}
...
etc.



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top