
Originally Posted by
Minder
Hi Oemar,
the first column was added by Access when I imported the table. The ID itself is not important, and data loss here is acceptable to combine records. However, the order of the items is important.
Thanks
Here's the code:
TRANSFORM First(Master.[Values]) AS FirstOfValues
SELECT Master.[ID], Master.[ObjectID], Master.[Description], Master.[Values]
FROM Master
GROUP BY Master.[ID], Master.[ObjectID], Master.[Description], Master.[Values]
PIVOT Master.[Metatag];
To see how the table looks like could you use:
Code:
SELECT Master.[ID],
Master.[ObjectID],
Master.[Description],
Master.[Values]
FROM Master
ORDER BY 1;
I think the table is the one that need fixing, the ID data type is Auto number that is why Access keep adding one to it, I see the grouping should be by ObjectID, if that is the case then you need to change the ORDER BY 2 where the sequence will be by ObjectID not ID.
I think your table results from importing one column at a time, try by importing for all columns at one time which will fix the table as well.