In my select expert I need to include a lot of conditions...
but its not working..or it works on some and not all...
Here it is:
{TBLLABOR.ACTDATESTART} in {?Start Date} and
if {?FunctionalGroup} = ""
then True
else {TBLEMPLOYEE.DEPARTMENT} = {?FunctionalGroup} and
{TBLWORKORDR.WORKORDERNUMBER} <> "IMEAL" and
(if {?EmpName} = "" then
True
else
{TBLEMPLOYEE.LNAME} = {?EmpName})
It will work for a date, Functionalgroup, or an employee...but it does not perform the part that says:
{TBLLABOR.ACTDATESTART} in {?Start Date} and
{TBLWORKORDR.WORKORDERNUMBER} <> "IMEAL"
BUT if i put it on its own..mainly JUST:
{dbo_TBLLABOR.ACTDATESTART} in {?Start Date} and
{TBLWORKORDR.WORKORDERNUMBER} <> "IMEAL"
That part works...but I need all those conditions!!!!
but its not working..or it works on some and not all...
Here it is:
{TBLLABOR.ACTDATESTART} in {?Start Date} and
if {?FunctionalGroup} = ""
then True
else {TBLEMPLOYEE.DEPARTMENT} = {?FunctionalGroup} and
{TBLWORKORDR.WORKORDERNUMBER} <> "IMEAL" and
(if {?EmpName} = "" then
True
else
{TBLEMPLOYEE.LNAME} = {?EmpName})
It will work for a date, Functionalgroup, or an employee...but it does not perform the part that says:
{TBLLABOR.ACTDATESTART} in {?Start Date} and
{TBLWORKORDR.WORKORDERNUMBER} <> "IMEAL"
BUT if i put it on its own..mainly JUST:
{dbo_TBLLABOR.ACTDATESTART} in {?Start Date} and
{TBLWORKORDR.WORKORDERNUMBER} <> "IMEAL"
That part works...but I need all those conditions!!!!