I took a look at that, but im clueless. How do i get it to do anything, it does not seem to do anything. Is there an example out there?
Which part are you talking about? The nz function, or the unmatched query?
And i hope im not piling up all the questions, but how do you filter a subform? Every single answer i can find is different from another.
Any help is really appreciated.
There is more than one way to skin a cat. Without knowing more, I would have to tell you that in whatever command you use to open the form should have the filter in the WHERE clause. I have been told this is the best way, because the query is reusable, and it is easier on system resources.
You could include criteria in the query. This is easy, but the query may not be reusable if you use this method. Also, I have heard that this is not the best approach (if I remember correctly) because it is slightly rougher on system resources, though it is probably the approach I use the most.
If this is a subform, you can drag a query into the form, and the new subform will have an sql statement in the record source, not a query. You can then go to the record source and click on the elipses to see the query builder, where you can edit the sql statement, and not the original query. I just figured this out last night, so if I am mistaken on this one, please let me know. But that is what I gathered from playing with things.
If it is a datasheet form, the end user could filter themselves.
I am sure there are more ways. Use whatever suits your needs.