D
DS
I have a Two Column Report, I'm setting the recordsource from the on open
event. Such as..
Me.RecordSource = "Select SELECT tblPayIns.PayInBizDay,
tblSalesCats.SalesCatName, tblReportCats.ReportCatName,
tblPayIns.PayInAmount AS DOLL
FROM ((tblSalesCats INNER JOIN tblRptSetUp ON tblSalesCats.SalesCatID =
tblRptSetUp.SalesCatID) INNER JOIN tblPayIns ON tblRptSetUp.ReportCatID =
tblPayIns.PayInRedID) INNER JOIN tblReportCats ON tblPayIns.PayInRedID =
tblReportCats.ReportCatID " & _
"UNION " & _
"SELECT tblPayApplied.PayAppliedBizDay, tblPayTypes.PayTypeName,
tblPayName.PayName, Sum(tblPayApplied.PayAppliedAmount) AS
SumOfPayAppliedAmount
FROM (tblPayApplied INNER JOIN tblPayName ON
tblPayApplied.PayAppliedNameID=tblPayName.PayNameID) INNER JOIN tblPayTypes
ON tblPayName.PayNameTypeID=tblPayTypes.PayTypeID
GROUP BY tblPayApplied.PayAppliedBizDay, tblPayTypes.PayTypeName,
tblPayName.PayName;"
I want the fields from the first query to be in Column A and the the fields
from the second query to be in Column B. Can this be done? If so, how.
Thanks
DS
event. Such as..
Me.RecordSource = "Select SELECT tblPayIns.PayInBizDay,
tblSalesCats.SalesCatName, tblReportCats.ReportCatName,
tblPayIns.PayInAmount AS DOLL
FROM ((tblSalesCats INNER JOIN tblRptSetUp ON tblSalesCats.SalesCatID =
tblRptSetUp.SalesCatID) INNER JOIN tblPayIns ON tblRptSetUp.ReportCatID =
tblPayIns.PayInRedID) INNER JOIN tblReportCats ON tblPayIns.PayInRedID =
tblReportCats.ReportCatID " & _
"UNION " & _
"SELECT tblPayApplied.PayAppliedBizDay, tblPayTypes.PayTypeName,
tblPayName.PayName, Sum(tblPayApplied.PayAppliedAmount) AS
SumOfPayAppliedAmount
FROM (tblPayApplied INNER JOIN tblPayName ON
tblPayApplied.PayAppliedNameID=tblPayName.PayNameID) INNER JOIN tblPayTypes
ON tblPayName.PayNameTypeID=tblPayTypes.PayTypeID
GROUP BY tblPayApplied.PayAppliedBizDay, tblPayTypes.PayTypeName,
tblPayName.PayName;"
I want the fields from the first query to be in Column A and the the fields
from the second query to be in Column B. Can this be done? If so, how.
Thanks
DS