P
Proko
I have a table called Tbl_Jewellery with the fields lng_JewelleryID and
str_Metal. Some jewellery can be made out of more than one metal so it is not
uncommon for a number of records to have the same lng_JewelleryID, each with
a different str_Metal.
lng_JewelleryID str_Metal
1 rose
1 white
1 yellow
2 platinum
2 silver
3 yellow
In the above example: ring with ID = 1 is made out of three metals; rose
gold, white gold and yellow gold. Ring 2, is made out of two; platinum and
silver. And ring three, just the one metal; yellow gold.
I would like to have a query that includes a calculated field called
"description" that would join all the str_metal field results into one long
string.
For example:
"Description" calculated field for ring with id =1 would be: rose white yellow
and for id =2: platinum silver
and for id =3: yellow
Is this possible? I've played around using a crosstab query but cannot find
a method of joining the different metal strings. If they were numeric values
I would sum them. Is there an equivalent of Sum for string values?
I hope this makes sense. Any help would be greatly appreciated. Thanks
str_Metal. Some jewellery can be made out of more than one metal so it is not
uncommon for a number of records to have the same lng_JewelleryID, each with
a different str_Metal.
lng_JewelleryID str_Metal
1 rose
1 white
1 yellow
2 platinum
2 silver
3 yellow
In the above example: ring with ID = 1 is made out of three metals; rose
gold, white gold and yellow gold. Ring 2, is made out of two; platinum and
silver. And ring three, just the one metal; yellow gold.
I would like to have a query that includes a calculated field called
"description" that would join all the str_metal field results into one long
string.
For example:
"Description" calculated field for ring with id =1 would be: rose white yellow
and for id =2: platinum silver
and for id =3: yellow
Is this possible? I've played around using a crosstab query but cannot find
a method of joining the different metal strings. If they were numeric values
I would sum them. Is there an equivalent of Sum for string values?
I hope this makes sense. Any help would be greatly appreciated. Thanks