A
Antone via AccessMonster.com
I am designing a Form called checks_tabular to enter invoices to pay (FOR
CHECK RUNS).
In Form, I have several combo boxes with drop down menu. Claim Number, Payee
ID....etc
I can isolate all vendors associated with a particular claim. But, I need to
have a selection to show "ALL" vendors (not only those associated with a
particular claim). So, I set a flag YES/NO, where "YES" is to see all
vendors (in case, there is a new vendor associated with claim....we can look
at our entire vendor list to see if this vendor is set up).
The Payee Query joins two tables Payees and Claim Transactions (where Payee
ID joins the two).
In Payee Query, I set claim number to "WHERE" and criteria Forms]!
[checks_tabular]![CLAIM_NUMBER]. OK, this works to isolate all payees
associated with one particular claim.
But, I tried IIF statement based on YES=1, NO=2 flag (to see the entire
vendorlist. I don't know if IIF works with WHERE. But, I set formula as
IIF(FLAG=2,Forms]![checks_tabular]![CLAIM_NUMBER], " "). I think WHERE might
want to isolate one claim number, not leave criteria blank to concern all
vendors associated with all claims.
I can't get IIF statement to distinguish between
1) The Payee (Vendors) associated with a specific claim
2) The Entire Payee List (3,000+ vendors).
Can anyone help me with this one? I don't think it likes the IIF statement
with with WHERE. Else, I don't think I can use wildcard in criteria for
query to concern all claims with WHERE. This one is a little tricky.
Thank you in advance,
Antone
RHI Consulting Team
CHECK RUNS).
In Form, I have several combo boxes with drop down menu. Claim Number, Payee
ID....etc
I can isolate all vendors associated with a particular claim. But, I need to
have a selection to show "ALL" vendors (not only those associated with a
particular claim). So, I set a flag YES/NO, where "YES" is to see all
vendors (in case, there is a new vendor associated with claim....we can look
at our entire vendor list to see if this vendor is set up).
The Payee Query joins two tables Payees and Claim Transactions (where Payee
ID joins the two).
In Payee Query, I set claim number to "WHERE" and criteria Forms]!
[checks_tabular]![CLAIM_NUMBER]. OK, this works to isolate all payees
associated with one particular claim.
But, I tried IIF statement based on YES=1, NO=2 flag (to see the entire
vendorlist. I don't know if IIF works with WHERE. But, I set formula as
IIF(FLAG=2,Forms]![checks_tabular]![CLAIM_NUMBER], " "). I think WHERE might
want to isolate one claim number, not leave criteria blank to concern all
vendors associated with all claims.
I can't get IIF statement to distinguish between
1) The Payee (Vendors) associated with a specific claim
2) The Entire Payee List (3,000+ vendors).
Can anyone help me with this one? I don't think it likes the IIF statement
with with WHERE. Else, I don't think I can use wildcard in criteria for
query to concern all claims with WHERE. This one is a little tricky.
Thank you in advance,
Antone
RHI Consulting Team