Hello all,
Here is the problem that I have and for which I need help.
In db I have a table that have one record per customer per year that has answers from the yearly survey on 15 questions. Answers are numerical values between 0 and 5, and here is potential scenario.
Customer Date Q1 Q2 Q3 ... Q15
JohnDoe 2011 1 2 1 5
JohnDoe 2012 2 1 3 5
JaneD 2011 2 2 2 0
JaneD 2012 2 1 1 1
....
Using Query wizard like this one
SELECT Questionnaires.Client, Questionnaires.[Q of L Date], Questionnaires.Q1, Questionnaires.Q2, Questionnaires.Q3, Questionnaires.Q4, Questionnaires.Q5, Questionnaires.Q6, Questionnaires.Q7, Questionnaires.Q8, Questionnaires.Q9, Questionnaires.Q10, Questionnaires.Q11, Questionnaires.Q12, Questionnaires.Q13, Questionnaires.Q14, Questionnaires.Q15FROM Questionnaires
WHERE (((Questionnaires.Client) In (SELECT [Client] FROM [Questionnaires] As Tmp GROUP BY [Client] HAVING Count(*)>1 )))
ORDER BY Questionnaires.Client;
I was able to produce grouping and have tmp table where the records are grouped by client and sorted by date in ascending order.
I want to use that query as a foundation for the report that will look something like this
Client's Questionnaires
Customer Date Q1 Q2 Q3 ... Q15
JohnDoe 2011 1 2 1 5
JohnDoe 2012 2 1 3 5
Analysis Up Down Up ... Same
JaneD 2011 2 2 2 0
JaneD 2012 2 1 1 1
Analysis Same Down Down ... Up
Where I can replace words 'same', 'up' or 'down' with arrows and/or colours
In report wizard I can only choose between SUM, AVG and so on but nothing that I need. I guess there is need for some macro or VBA and that is where I'm stuck.
Your help is appreciated.