Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

crystal report select expert

Status
Not open for further replies.

michelleHEC

Programmer
Oct 20, 2003
95
US
MONTH({EMPDETL.BDAY}) ={?Month} OR
MONTH({EMPDETL.ANNIVERSARY}) ={?Month} OR
MONTH({EMPDETL.HDATE}) ={?Month} and
{EMPDETL.STATUS} = "A"

what could be wrong with this? I still see status items that are not "A"

thank you.
 
ok, the problem was the or was overriding the and statement.
puting parentheses around the or statements corrected it.

(MONTH({EMPDETL.BDAY}) ={?Month} OR
MONTH({EMPDETL.ANNIVERSARY}) ={?Month} OR
MONTH({EMPDETL.HDATE}) ={?Month}) and
{EMPDETL.STATUS} = "A
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top