Seems to be a bunch of problems or just typos in your SQL statement.
1. It doesn't mention a table after FROM
2. In the HAVING it's missing a [, and maybe having an extra (, in front of
the of (placements] .
2. In the Select you have [# of placements] but in the Having only [of
placements].
4. Date() can be a problem is there is a references problem. Press Ctrl + g
at the same time. In the Immediate window type the following and press Enter:
Debug.Print Date()
It should product today's date. If there's an error, you have a references
problem OR a typo.
Try running the following with the proper table and field names:
Count([# of placements]) AS PlacementCount
FROM TheTableName
WHERE [DOE] Between Date() And Date()-365
HAVING [# of placements]>=2;
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
Jessica said:
The formula is not working
Count([# of placements]) AS PlacementCount
FROM
WHERE (((DOE) Between Date() And Date()-365))
HAVING (((of placements]))>=2));
Jerry Whittle said:
Show us the SQL. Open the query in design view. Next go to View, SQL View
and copy and past it here.