I have a report created from the wizzard which is based on a query. When I run the query the results are how I want them. When I run the report the 4 formula field results are not what I am expecting.
The query is based on 2 tables. In order to get the query to display the results I want, I had to change the order of the fields (left to right) inside the body of the query. This is how I have the query set up...
Field/Total/Sort
Dist_No/Max/Ascending (If this field is not the left most field in the body of the query, the query doesn't return expected results)
Cust_Order_ID/Group By/Ascending
Line_No/Group By/Ascending
Sales, Cost, Gross Profit and Percent(all formulas)/(Total was set to First but when I saved the query, Access changed Sort to Expression and added First() around the each of the formulas)/<no sort>
I have tried to create the report several times through the wizzard. I have mimicked the sort order from the query in the wizzard and I have tried with no sort order but the report is not returning the First() values in Sales, Cost, Gross Profit and Percent.
Does anyone know how I can get the report to return the values exactly as the query has them?
Thanks,
Hillary
The query is based on 2 tables. In order to get the query to display the results I want, I had to change the order of the fields (left to right) inside the body of the query. This is how I have the query set up...
Field/Total/Sort
Dist_No/Max/Ascending (If this field is not the left most field in the body of the query, the query doesn't return expected results)
Cust_Order_ID/Group By/Ascending
Line_No/Group By/Ascending
Sales, Cost, Gross Profit and Percent(all formulas)/(Total was set to First but when I saved the query, Access changed Sort to Expression and added First() around the each of the formulas)/<no sort>
I have tried to create the report several times through the wizzard. I have mimicked the sort order from the query in the wizzard and I have tried with no sort order but the report is not returning the First() values in Sales, Cost, Gross Profit and Percent.
Does anyone know how I can get the report to return the values exactly as the query has them?
Thanks,
Hillary