Hi all,
I know this is a basic question but I haven't done reports/queries on MS Access for so long that I can't remember how it works!!
I have a database built to record the activities of my sales team. One of the fields captured is the type of the activity for the day... it can be: "on the road", "in the office", "holidays". It also capture the date of the activity, who with, etc... all in different tables using pk/fk to link each other.
Now I need to create a report which will show for each sales person, the number of the days in each type of activity per week. I am trying to create the query which I will base to build my report on but I just can't figure out what to do!!!!
I could easily do it via VBA by creating a recordset to the sales team, then for each sales person of the recordset I would create a recordset of their activities, then run through the activities recordset and hold the amalgamation in variables comparing when the activity were "on the road" or "in the office" or in "holidays". But then, how can I export the variables/recordset/result to my reports?
Anyway, I am happy to have the query approach to do it but can someone shed some light? I am lost in this part of MS Access.
Thanks
mane_uk
I know this is a basic question but I haven't done reports/queries on MS Access for so long that I can't remember how it works!!

I have a database built to record the activities of my sales team. One of the fields captured is the type of the activity for the day... it can be: "on the road", "in the office", "holidays". It also capture the date of the activity, who with, etc... all in different tables using pk/fk to link each other.
Now I need to create a report which will show for each sales person, the number of the days in each type of activity per week. I am trying to create the query which I will base to build my report on but I just can't figure out what to do!!!!
I could easily do it via VBA by creating a recordset to the sales team, then for each sales person of the recordset I would create a recordset of their activities, then run through the activities recordset and hold the amalgamation in variables comparing when the activity were "on the road" or "in the office" or in "holidays". But then, how can I export the variables/recordset/result to my reports?
Anyway, I am happy to have the query approach to do it but can someone shed some light? I am lost in this part of MS Access.
Thanks
mane_uk