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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

selecting records: "Or" won't work?

Status
Not open for further replies.

jimwarren

ISP
Apr 12, 2003
7
0
0
US
i am trying to select all records that have an "order status " of "D", OR have a hold_reason of "DECLINED"...

ie,

({sysoent.order_status} = "D") Or ({holdords.hold_reason} = "DECLINED")

the only records returned from the above are the hold_reason DECLINED ones.... the status "D" records are ignored...

separately they work as expected

is there another way to do this?

thanks! jim
 
try this instead

({sysoent.order_status} = "D" Or {holdords.hold_reason} = "DECLINED")

just one bracket around the whole expression


Jim Broadbent

The quality of the answer is directly proportional to the quality of the problem statement!
 
What is the relationship between the two tables and how are they linked?

-LB
 
the tables were the problem.... i guess i was trying too many different things at once last night...:)
i thought they worked separately, but once i added the holdords table, it broke the status D query....

i ended up making a separate report and inserting it as a subreport, and now all is fine!

thanks for the help.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top