cancel
Showing results for 
Search instead for 
Did you mean: 

Help With Query Pls

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Steve,

Use something like this:

WHERE ((T0.DocDate >= '[%0]' and T1.DocDate <= '[%1]') OR ('[%0]' = '' and '[%1]' = ''))

Regards,

Nat

Answers (0)