C
Curtis Stevens
I have affiliates I pay residual payments to. I have a query that pulls the
residual data from a table and a report that uses this query to print out the
reporting information. I do not want the information to come up in the
reports for any affiliate who's residual is less than $25 total.
A screen shot of my query:
http://www.gotmerchant.com/db.gif
Sql data:
SELECT ResidualInfo.AffiliatePaid, Affiliates.Company,
Affiliates.ContactName, Customers.Company, ResidualInfo.ProcessingMonth,
ResidualInfo.ProcessingVolume, ResidualInfo.DiscountTransactions,
ResidualInfo.NetProfit, Affiliates.[Residual Percentage]
FROM (Customers INNER JOIN Affiliates ON Customers.ReferredAffiliateID =
Affiliates.AffiliateID) INNER JOIN ResidualInfo ON Customers.CustomerID =
ResidualInfo.CustomerID
WHERE (((ResidualInfo.AffiliatePaid)=Yes));
I have it setup on the report so each affiliate is broken out into it's own
pages. At the bottom for each affiliate, I have a text box with this source
code to add up all the monies due to them:
Nz(Sum([NetProfit]))*[ResidualPercentage]
MY QUESTION:
What is the best way or approach to do this? Do something on the query or
report side?
Thanks
Curtis
residual data from a table and a report that uses this query to print out the
reporting information. I do not want the information to come up in the
reports for any affiliate who's residual is less than $25 total.
A screen shot of my query:
http://www.gotmerchant.com/db.gif
Sql data:
SELECT ResidualInfo.AffiliatePaid, Affiliates.Company,
Affiliates.ContactName, Customers.Company, ResidualInfo.ProcessingMonth,
ResidualInfo.ProcessingVolume, ResidualInfo.DiscountTransactions,
ResidualInfo.NetProfit, Affiliates.[Residual Percentage]
FROM (Customers INNER JOIN Affiliates ON Customers.ReferredAffiliateID =
Affiliates.AffiliateID) INNER JOIN ResidualInfo ON Customers.CustomerID =
ResidualInfo.CustomerID
WHERE (((ResidualInfo.AffiliatePaid)=Yes));
I have it setup on the report so each affiliate is broken out into it's own
pages. At the bottom for each affiliate, I have a text box with this source
code to add up all the monies due to them:
Nz(Sum([NetProfit]))*[ResidualPercentage]
MY QUESTION:
What is the best way or approach to do this? Do something on the query or
report side?
Thanks
Curtis