I created a Bathing_Schedule table and cut and paste your code.
Your SELECT statement worked fine in Access 97,2000, XP and also SQL
Server 2000.
The error:
" The specified field "name" could refer to more then one table listed in
the from clause of your SQL statement"
that you have 2 tables in your FROM clause, there is a field that they
each have in common, and that field name was not fully qualified in the
SELECT clause. None of these apply to your SELECT statement.
You might try enclosing Name (it is a reserved word) in square brackets as
below, but I don't really think that is the problem.
SELECT Bathing_Schedule.[Name]
FROM Bathing_Schedule
GROUP BY Bathing_Schedule.[Name]
HAVING count(Bathing_Schedule.[Name])=1;
I don't have any other ideas.
Barry McConomy said:
Bill
Data Type = Number
SQL used:-
SELECT Bathing_Schedule.Name
FROM Bathing_Schedule
GROUP BY Bathing_Schedule.Name
HAVING count(Bathing_Schedule.Name)=1;
In the Bathing_Schedule the name is populated with a dropdown box which
is a filed from a table called resident_details
Regards
Barry