Mike Berman wrote:
HI I would like to run a query on a weekly basis, that lists the salespersons 
orders that are on a credit hold. I would like the date range to reflect from 
the start of the year until the current week, and to have this upper range 
listed on the heading. Can this be done only in the Query or should there be 
parameters passed. What would be the best way to pass such parameter if that is 
the case?

Thanks,

Mike


I think you can do that.

In define fields, you'll do something like this:

ENDDATE      CURRENT(DATE)

YR#          YEAR(ENDDATE)                 4   0

YR           DIGITS(YR#)

STRDATE      DATE('01/01/' || YR)



The STRDATE probably needs to match your job date format to work properly. Mine is MDY and displays as 01/01/04.

You can then select on HELDDATE RANGE STRDATE ENDDATE

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.