V11,AccessDB This is an example of what my report looks like now.
GH1-Salesperson1-Mikey
GH2-TrailerType-LQ
Detail-Deal# Gross Commissions
GH1-Salesperson1-Howard
GH2-TrailerType-LQ
Detail-Deal# Gross Commissions
I have this report built and it works great, but now they've discovered that sometimes the Salespeople share deals and they need to be split between them. Each salesperson has a unique sales#. If only one person has the deal, the number is located in field SP1 of table2, if there is a second person, theirs is in field SP2 of table2. I've used this formula:
if isnull({sp2}) or {sp2} = "" or {sp1} = {sp2} then
{retial} else
({retail}/2)
and it returns all of retail values and splits the deal on SP1 but it doesn't show up in the detail on SP2 (the other half of the deal).
My links look like this
Table1 Table2 Table3 Table4
Co#--------->Co#
Deal#------>Intro#
SP1---------->Emply#
Stock#-------------------->Stock#
All are Inner Joins except SP1 to Emply#, it's Left Outer. In table 2 is where SP2 also resides. If I do a LO join on SP2 to employee number almost all of my data goes away. Any suggestions?
GH1-Salesperson1-Mikey
GH2-TrailerType-LQ
Detail-Deal# Gross Commissions
GH1-Salesperson1-Howard
GH2-TrailerType-LQ
Detail-Deal# Gross Commissions
I have this report built and it works great, but now they've discovered that sometimes the Salespeople share deals and they need to be split between them. Each salesperson has a unique sales#. If only one person has the deal, the number is located in field SP1 of table2, if there is a second person, theirs is in field SP2 of table2. I've used this formula:
if isnull({sp2}) or {sp2} = "" or {sp1} = {sp2} then
{retial} else
({retail}/2)
and it returns all of retail values and splits the deal on SP1 but it doesn't show up in the detail on SP2 (the other half of the deal).
My links look like this
Table1 Table2 Table3 Table4
Co#--------->Co#
Deal#------>Intro#
SP1---------->Emply#
Stock#-------------------->Stock#
All are Inner Joins except SP1 to Emply#, it's Left Outer. In table 2 is where SP2 also resides. If I do a LO join on SP2 to employee number almost all of my data goes away. Any suggestions?