Trying to do something that's a couple steps outside my comfort zone and so far, I can't find a useful example or explanation that I can wrap my head around.
I have a continuous form open and I want to be able to filter the content based on three criteria. 1) The primary key, 2) The earliest date and 3) The latest date.
I figure I could do it with a conglomerate of many If Then Else operations but that seems like it will be clumsy at best.
I would also want to error check the two date entries to make sure the earliest does not occur after the latest.
I had a thought about setting up three Dim variables in that section of code and apply default values and then when a value changes for any given field, change the that appropriate variable and reapply the filter.
I would have to figure out how to reset the variables if the field value was removed, for instance, the Primary Key value could be set to null to bring back all entries just within the date range(s).
I will start playing with stuff later but if there are some good examples anyone can point me to, that would be great.
TIA