query to extract dates where no rows contain a specific value

I need some assistance with an access query. I have a table, and there are 2 fields of interest, for now lets say Field9 (activity) and Field1 (date). the rows of data represent login activity to an application. The entries in Field9 can be either In, Out, Screensaver, Locked, Unlocked. What I need to do is to group on Field1 (date), to get a list of unique dates where none of the rows for that date contain the word Locked.

E.g. from this data:
Field1             Field9
25/09/2018   IN
25/09/2018   OUT
26/09/2018   IN
26/09/2018   LOCKED
26/09/2018   UNLOCKED
26/09/2018   OUT
27/09/2018   IN
27/09/2018   OUT

the query would return both 25/09/2018  and 27/09/2018 , as on both of those days, there was no locked entry in any of the rows for those dates, whereas for 26/09/2018 there was. Not sure what approach to use, I did think of group by count as a basis and manual filter of those results.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gustav BrockCIOCommented:
You could try:

Select * 
From Table
Where Field1 Not In (Select Field1 From Table As T Where T.Field9 = "LOCKED")

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dale FyeOwner, Developing Solutions LLCCommented:
Another method, which might run quicker, depending on the size of your dataset would be:

SELECT yourTable.*
FROM yourTable
SELECT DISTINCT Field1 FROM yourTable WHERE Field9 = "Locked"
) as T ON yourTable.Field1 = T.Field1
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.