More

How Can I Pivot a Table in Microsoft Access?

It used to be possible to pivot tables in older versions of Microsoft Access (Access 2010). The option to pivot tables seems now to have been removed. Furthermore, the SQL PIVOT operator does not appear to be supported by MS Access. So what are my options if I wish to pivot my data in an Access database?

Specifically, my problem is this:
I have a ‘Contacts‘ table in my Access database which contains names, addresses, etc of my contacts, EXCEPT all phone numbers are stored in a separate ‘PhoneNumber‘ table. This is because I want to give descriptions to each number. So there are four columns in the PhoneNumbers table:

  1. NumberID (Primary Key)
  2. Contacts ID (Foreign Key)
  3. Description (eg: ‘Mobile’, ‘Home’, ‘Work’)
  4. PhoneNumber

The two tables are inner joined on contactID.

I wish to display all my records from the ‘Contacts‘ table together with the ‘Description’ field from the ‘PhoneNumbers‘ table appended to this dataset.

The entries from the ‘PhoneNumber‘ field of the ‘PhoneNumbers‘ table, I wish to be presented as record entries inside the Description field. This can be done using SQL PIVOT and using MAX(PhoneNumber) as the aggregating function -But, PIVOT does not appear to be supported in MS Access. Am I right? If so, how can I achieve my aim?

Steffy Alen

Recent Posts

Best Places to Visit in Athens for an Unforgettable Trip

Places to See in Athens Athens wears its long past like a well-loved coat, threading…

2 weeks ago

The Science Behind Premium Pet Food and Long-Term Animal Wellness

Pet nutrition has evolved significantly over the years, moving beyond basic feeding toward a science-driven…

1 month ago

A Guide to Après Ski in Tignes: Top Bars and Venues

Tignes is famous for its high-altitude slopes, long season and fantastic snow record, but the…

3 months ago

Seafront Hotels Llandudno: The Ultimate Coastal Retreat

Nestled along the breathtaking North Wales coastline, Llandudno is often referred to as the Queen…

3 months ago

Melbourne Diamonds, Sydney Gold: Smart Tips for Selling Your Jewellery

Ever found yourself staring at your old jewellery, wondering if it’s worth more than just…

3 months ago

Questions to Ask Yourself When Looking for a Seaside Holiday with a Seafront Hotel

Planning a seaside holiday is exciting, but finding the best seafront hotel Llandudno can make…

4 months ago