So, I want to filter out a form based on the value in a text box. The text box is called details, and it changes control source based on buttons. When it changes control source, I want it to filter out the blank text boxes. If I filter by the control source, it takes forever to load, so I want to try filtering by the text box values.
I tried this:
DoCmd.ApplyFilter , "Not isnull([Details]) AND (Student_Name = 'Cancelled' OR isNull(Student_Name)) " & " AND CDate([Day] & ' ' & [StartT]) BETWEEN #" & Now() & "# AND Date() + 8 "
The text box is called [Details], but it doesn't recognize it, and asks me for it's value.
Is there any way to do this?
Thank you.