Skip to content
Advertisement

Split data in one column and convert them into column headers in MS Access

I’m trying to convert a column of data into headers on a new table. This question has a good answer but the SQL doesn’t work in Access, I get a syntax error on the very first part of the SELECT statement. Here’s the code, with example names:

Should this code work or is it not compatible with Access? How would I achieve something like this in Access?

Advertisement

Answer

Use conditional aggregation instead:

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