on 04-17-2009 11:50 AM
Hello
I want to write a query which returns Sales Quotations within a date range ....ie
...................WHERE T0.DocDate BETWEEN [%0] AND [%1]
However if the two parameters are left blank I would want the query to return all Sales Quotations regardless of date.
Hope I have made myself clear?
Thanks
Steve
Steve,
Use something like this:
WHERE ((T0.DocDate >= '[%0]' and T1.DocDate <= '[%1]') OR ('[%0]' = '' and '[%1]' = ''))
Regards,
Nat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.