Skip to content
Advertisement

MS Access From Wide Format to Long Format New variable Union ALL

I’m a newbie at MS Access and need some help. I have a table that looks like this:

ID HDD CDD HDDKEY CDDKEY
186 -1 -1 1 5

and would like the following:

ID HDD CDD KEY
186 -1 0 1
186 0 -1 5

My code -that does not work:

Advertisement

Answer

You are close

Note that KEY is a poor name for a column because it is a SQL keyword.

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