Problem: I run a query based on a table that defines the Data Type for this field as a datetime. The field is called "WHEN". I do not need the time, I only need the date.
I do not know if the fix should be made only in the query, or if should and can be in the original table (Scrap_Q4).
Here is the SQL for my query:
SELECT Scrap_Q4.When, Scrap_Q4.REJ, Count(Scrap_Q4.PN) AS CountOfPN, Scrap_Q4.PN
FROM Scrap_Q4
GROUP BY Scrap_Q4.When, Scrap_Q4.REJ, Scrap_Q4.PN
HAVING (((Scrap_Q4.When) Between [Start date] And [End date]) AND ((Scrap_Q4.REJ)=[#]))
ORDER BY Scrap_Q4.When, Scrap_Q4.REJ;
Obviously, I have many things going on in the query, but my goal right now is to just remove Time from the Date.