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

Advanced Condition question

Status
Not open for further replies.

txwylde

Programmer
Jan 25, 2001
60
US
I have a query that I want to limit the data if the Setup Amount is equal to the Dispotion Code and the Reason Code is 0007. Is there a way to limit the data coming back in the Query Panel Window?
Take care
Bill
 
Sure, one of the operators is to compare 1 object to another.

Steve Krandel
VERITAS Software
 
I have created a variable to flag the fields. Here is the code:
= If ((<A/R Setup Amt>) = (<A/R Disposition Amt>)) And ((<A/R Disposition Reason Cd>) ="0007") Then "1" Else "2"

I want to filter only the items that = 2. The problem is I can not use that back into my query. I can only use it after the query has been run.

Any ideas?
 
Your second demand is the opposite of the initial one.
Follow Steve's reply and build the correct condition in the query panel. It's doable and there will be no need to fetch all data first (and then flag and filter accordingly)

Ties Blom
Information analyst
 
Ok.. forgive my ignorance but in the Edit the Data Provider window, the only way I can see to compare one object to another is using the User Objects which is to the right of the SQL button. In the Conditions, I do not see where I can compare two variables. Thanks!
Bill
 
Wait a sec! I got it. :) Thanks for all of you guy's help. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top