Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 need way to include all Freight rows

Author  Topic 

AdamWest
Constraint Violating Yak Guru

360 Posts

Posted - 2013-10-17 : 17:35:14
this is from a crystal report 'formula'

the issue is, when the user selects a product line code(s). we also want to include any rows which are freight rows (FR '). This code is
also including any orders only the freight which we dont want. I need a way to say, if Product line selected
grab it
also grab any FR* rows with same order number.



if {?Product Line} <> "ALL" then
{FRTZONE.IDPRLC} = {?Product Line} or {FRTZONE.IDPRLC} like "FR*"
else
{FRTZONE.IDPRLC} = {FRTZONE.IDPRLC}
   

- Advertisement -