Access 2003
Hi All,
I have a table with the following data:
Color, Make, Doors, EnCC, BType, Model, MakeCode,ModelCode
Red, BMW, 5 , 1998, Sal, 320i , DG ,445
Red, BMW, 3 , 1998, Sal, 320i , DG ,445
Green, Ford,5 , 1598, Hat, Fiesta, F2, ,125
etc etc
What I would like to do is this:
Where the complete row is distinct\unique, leave as is.
Where there are 2 or more make and model codes that are equal, then "group" those rows together: by this I mean the above would be:
Color, Make, Doors, EnCC, BType, Model, MakeCode,ModelCode
Red, BMW, 5 , 1998, Sal, 320i , DG ,445
null, null 3 , null, null, null , null ,null
Then from this I need to create:
Color, Make, Doors, EnCC, BType, Model, MakeCode,ModelCode
Red, BMW, 5/3, 1998, Sal, 320i, DG, 445
So basically, wherever in the data there is a make and model code that is not unique, I need to create the above for them.
The duplicate make and model codes can be anything from 2 to 6 or so (on average).
I don't know where to start...!
As usual, all info is appreciated.
Thanks
Michael
Hi All,
I have a table with the following data:
Color, Make, Doors, EnCC, BType, Model, MakeCode,ModelCode
Red, BMW, 5 , 1998, Sal, 320i , DG ,445
Red, BMW, 3 , 1998, Sal, 320i , DG ,445
Green, Ford,5 , 1598, Hat, Fiesta, F2, ,125
etc etc
What I would like to do is this:
Where the complete row is distinct\unique, leave as is.
Where there are 2 or more make and model codes that are equal, then "group" those rows together: by this I mean the above would be:
Color, Make, Doors, EnCC, BType, Model, MakeCode,ModelCode
Red, BMW, 5 , 1998, Sal, 320i , DG ,445
null, null 3 , null, null, null , null ,null
Then from this I need to create:
Color, Make, Doors, EnCC, BType, Model, MakeCode,ModelCode
Red, BMW, 5/3, 1998, Sal, 320i, DG, 445
So basically, wherever in the data there is a make and model code that is not unique, I need to create the above for them.
The duplicate make and model codes can be anything from 2 to 6 or so (on average).
I don't know where to start...!
As usual, all info is appreciated.
Thanks
Michael