Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELECT CUSTNMBR, CUSTNAME, SLPRSNID, SPRSNSLN, Sum(WB_COMM_CALC) AS SumOfWB_COMM_CALC, WB_DATE_COMM_PROC, WB_NEWRENEW, WB_COMM_ID, 1 AS Company, WB_TIER_PERC, ITEMNMBR
FROM (WaubeWB_CPICH LEFT JOIN WaubeRM00101 ON WaubeWB_CPICH.CUSTNMBR = WaubeRM00101.CUSTNMBR) LEFT JOIN WaubeRM00301 ON WaubeWB_CPICH.SLPRSNID = WaubeRM00301.SLPRSNID
GROUP BY CUSTNMBR, CUSTNAME, SLPRSNID, WaubeRM00301.SPRSNSLN, WB_DATE_COMM_PROC, WB_NEWRENEW, WB_COMM_ID, 1, WB_TIER_PERC, ITEMNMBR, WB_CASH_COLL
HAVING (((SLPRSNID) Like IIf([Forms]![frmMain]![cboSalesperson]="",'*',[Forms]![frmMain]![cboSalesperson])) AND ((WB_DATE_COMM_PROC)>=[Forms]![frmMain]![cboFromDate] And (WB_DATE_COMM_PROC)<=[Forms]![frmMain]![cboToDate]) AND ((WB_NEWRENEW) Like IIf([Forms]![frmMain]![fraBusType]![value]=2,'*',[Forms]![frmMain]![fraBusType]![Value])) AND ((WB_COMM_ID) Like IIf([Forms]![frmMain]![cboICRole]="",'*',[Forms]![frmMain]![cboICRole])) AND ((WB_TIER_PERC) Like IIf([Forms]![frmMain]![fraTierPercentage]=1,'*',[Forms]![frmMain]![cboTier])))
ORDER BY CUSTNMBR, SLPRSNID, WB_DATE_COMM_PROC, WB_NEWRENEW, WB_COMM_ID;