Hi I need some help with a query.
I have got 2 tables VACANCY and VACANCY_LOCATIONS linked as
VACANCY.[vac:vacancy_id] to VACANCY_LOCATIONS.[vacloc:vacancy_id]
There is a one to many relationship between the tables, ie for each record in VACANCY there could be multiple rows in VACANCY_LOCATIONS. This table holds a list of Cities [vacloc:city] for each VACANCY.
I am trying to write a query that selects specific fields from VACANCY and also to select into a single output string all the cities in the VACANCY_LOCATIONS table.
The query is then going to be used for a mail merge into Word, so obviously I cant do a normal join otherwise I would end up with repetitive data relating to the VACANCY.
Any advice would be apreciated.
Andy
I have got 2 tables VACANCY and VACANCY_LOCATIONS linked as
VACANCY.[vac:vacancy_id] to VACANCY_LOCATIONS.[vacloc:vacancy_id]
There is a one to many relationship between the tables, ie for each record in VACANCY there could be multiple rows in VACANCY_LOCATIONS. This table holds a list of Cities [vacloc:city] for each VACANCY.
I am trying to write a query that selects specific fields from VACANCY and also to select into a single output string all the cities in the VACANCY_LOCATIONS table.
The query is then going to be used for a mail merge into Word, so obviously I cant do a normal join otherwise I would end up with repetitive data relating to the VACANCY.
Any advice would be apreciated.
Andy