It sounds like you need something like
SELECT rotas.day_of_week, staff.staff_name, rotas.bk_date, rotas.short_name, rotas.description,
FROM rotas INNER JOIN staff ON rotas.short_name = staff.short_name
WHERE (((rotas.short_name)=[ente
ORDER BY rotas.bk_date;
I'm taking a bit of a guess at some things because you haven't provided any information about your tables, so I'm assuming you have a common field in your staff and rotas tables that identifies the staff member. In this case I've assumed the field is called short_name. If your using an ID field instead then your query would become something like;
SELECT rotas.day_of_week, staff.staff_name, rotas.bk_date, rotas.short_name, rotas.description,
FROM rotas INNER JOIN staff ON rotas.staff_id = staff.staff_id
WHERE (((rotas.short_name)=[ente
ORDER BY rotas.bk_date;
Main Topics
Browse All Topics





by: xnmbPosted on 2003-05-08 at 04:32:16ID: 8487488
i'm sorry couldn't quite understand your current query. could you possibly post the definitions of table(s) concerned?
xnmb