Skip to content
Advertisement

Arranging Columns in Microsoft Access

I am using Microsoft Access to generate a report, but I’m encountering difficulty in figuring out how to have the information displayed in way that will comply to my preference. Specifically: the manner in which the data in my table is currently displayed is depicted below:

However, I would like the data to display as follows:

My understanding of SQL is admittedly rudimentary, so I have been only able to come up with the following query:

Is what I’m looking for possible in MS Access?

Advertisement

Answer

Have a look at using the Query Wizard in Access to create a Crosstab Query.

  • Start by opening the wizard, and selecting “Crosstab Query Wizard” from the choices given when you start the wizard;
  • Select the table required – I think that this is “Records” in your case;
  • Select “Provider” as row header in the next screen;
  • Select “Day” as the column header in the next screen;
  • Select “Date” to group by in the next screen;
  • Select “Count” as the value to be shown.

Your SQL should look like:

Regards,

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement