Hello Again
I’m trying to work out the percentages from a count of certain results. I’ve used two queries to count the number of occasions that a record is ‘won’ or ‘lost’ by month, then put the queries into a third to allow me to set-up a calculated field. The thing works OK, right up until the point that I arrange for one of the values not to be present in any given month. The query gives me the number of occurrences where one of the values is present, and a blank for month where the value wasn’t present.
Here is the SQL for the query in question, I’m using the Max option as the count returns some really weird results and I couldn’t see why.
SELECT percentwon.Month, Max(percentwon.CountOfwonlost) AS MaxOfCountOfwonlost, Max(percentlost.CountOfwonlost) AS MaxOfCountOfwonlost1, Max([percentwon]![countofwonlost]+[percentlost]![countofwonlost]) AS sum
FROM percentlost RIGHT JOIN percentwon ON percentlost.Month = percentwon.Month
GROUP BY percentwon.Month;
I vaguely remember that there are different join options available, but not offered on the Access pop-up menu, any suggestions as to what they are so I can try them in the SQL window?
Thanks for you time
Ian