Has anyone successfully done multiple select statements in the same Query or even gotten the '#OtherQueryColumnName#' in another SubReport to work? Here is my current Querys
-- LineItemQuery / SubReport 1 --
SELECT PLNumber, Quantity, InvDate FROM InvoiceView1
WHERE InvNumber = '#Parameters["Invoice_Number"]#'
-- LineItemCostQuery / Sub Report 2 --
SELECT SUM(Cost * Quantity) As Total FROM InvoiceView1
WHERE PLNumber = '#PLNumber#'
If I could get both Select statements to work in 1 query that would be Ideal without even using 2 Sub Reports due to these all being on the same Line in the report. But when I do put both querys together in and run it I get a System.IndexOutOfRangeException: PLNumber and if I have them in Sub Reports I get the same error. If in my Sub Report I specifically pass in the query of
SELECT SUM(Cost * Quantity) As Total FROM InvoiceView1
WHERE PLNumber = 'PL10015'
I do get 1 record with the cost as I should. So I know everything else is correct. Just not sure how to access Data from other Querys. The Doc's seem to say use the # as an Identifier but no luck. Any help would be very appreciated.