I might not have set this out in the best possible format but due to my limited vb knowledge I have a bunch of queries that are used as filters in macros that open the same form. I have a search form with a free text area for the search criteria, then two drop down boxes for 1 selecting the table to search and 2 select the field to search. This all works very well and I am happy with how it functions, although I apreciate it could have probably beeen done far quicker in SQL.
My problem is that I would like users to be able to select if they see records that are 'open' or all records within their criteria. I have a checkbox on the form that users tick to say they only want to see open records, if left blank then they see all records. The difficult part is a record is defined as open or closed by a date being presesnt in the closed date field. So I need to know how to use the tick box to say if a tick is present then the field should be Not Null and if a tick isn't present then show all records. Is this possible using a non SQL query?
Sorry this is so long!
My problem is that I would like users to be able to select if they see records that are 'open' or all records within their criteria. I have a checkbox on the form that users tick to say they only want to see open records, if left blank then they see all records. The difficult part is a record is defined as open or closed by a date being presesnt in the closed date field. So I need to know how to use the tick box to say if a tick is present then the field should be Not Null and if a tick isn't present then show all records. Is this possible using a non SQL query?
Sorry this is so long!