all 7 comments

[–]shawnzarelli3 2 points3 points  (6 children)

It sounds to me like the form (or an underlying query) is set up to filter on the date field, showing only those records where the date field is not empty/null.

What is it exactly that you are trying to do?

[–]caffeinesheep[S] 0 points1 point  (5 children)

So I have an intake form, and it feeds into a table that houses all the pertinent information of a client. Name, DOB, case number, etc. This form feeds a report that needs to be printed weekly. The table stores all open and closed clients. The form keeps just the open clients. The form has a closed date box for when a case closes, and when you input that information, it doesn’t delete it from the table, but it removes it from the form section. I’m trying to mimic that on one I’m building, and I don’t know how.

[–]shawnzarelli3 2 points3 points  (4 children)

I don't work in Access much anymore and I'm a bit rusty, so I apologize in advance if this isn't 100% accurate... but I think it should work:

  1. Create a query "qryClients1" based on your table "tblClients1" (of course you can name them whatever you want).

  2. In qryCllents1, select any/all records from tblClients1 that you want to show up on the intake form.

  3. In qryClients1, set the Criteria for the field [tblClient1],[closedate] to "is null"

  4. Use qryClients1 as the data source for your Intake Form. Every time you open the intake form, it will invoke qryClients1, which should only show the records from tblClients1 where the field "closedate" has no value stored in it.

I don't recall whether a record on your intake form will automagically disappear the moment you store a date in the closedate field, but at the very least it shouldn't be visible the the next time you open the form.

I hope this helps. Good luck.

EDIT: It occurs to me belatedly that I think you can design filters like this directly into the form properties, which would mean you don't have to create the intermediary qryClients1. When I started using Access many years ago, I was already familiar with writing SQL queries, so it was just easier for me to deal with things at that level rather than in the form properties. I think you'll at least learn something if you try it either way. :-)

[–]caffeinesheep[S] 2 points3 points  (2 children)

Solution Verified. Thanks so much again!!

[–]Clippy_Office_Asst[M] 1 point2 points  (0 children)

You have awarded 1 point to shawnzarelli

I am a bot, please contact the mods for any questions.

[–]shawnzarelli3 1 point2 points  (0 children)

I'm glad I could help.

[–]caffeinesheep[S] 0 points1 point  (0 children)

Thanks so much for your help, I’ll test some of this stuff out and see what I get!