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

YearWeek report parameter

Status
Not open for further replies.
Oct 12, 2005
204
GB
Hi,

i have a report that returns all invoices, this works fine, but now i have been asked to add a parameter so the user can sort by week number and year or year/weeknumber, the field in the table that i need to query on is formatted dd/mm/yyyy.

Can anyone suggest a way to be able to do this please?

Thanks in advance.
Mick.
 
Do you really mean "sort" or do you mean select? You could use a record selection formula like this:

year({table.date}) = {?Year} and //number parameter
datepart("ww",{table.date}) = {?WkNo} //number parameter

-LB
 
Yes sorry I did mean select and not sort, that formula works great.

Thanks very much for your help.

Mick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top