Re:How to 'Set filter to Found("B")' ala dBASE?
Jan,
Quote
> Based on your original query example, I assume that you only want to
>see Clients that also show up in the Suspends table with a code of
>Suspended = True <
That's true, but Suspended isn't a field. It's a set of conditions (which
can still be filtered for).
Before I had a chance to read your most recent reply I realized why you were
using a 'locate' rather than the method I had been using. I had been
relying on the MasterSource property to force the navigation on the 'child'
query. That works when displaying data on a form, but the child table only
gets repositioned *after* the parent table navigates. That's too late to be
able to use the child's value in the parent's filter. By using the locate
you can *force* the navigation in the child table.
The value in the child table is somewhat convoluted, in that it involves a
boolean value (the suspension is currently active), and the suspension date
is less than today and the resume date is greater than today. I had been
doing a query to get a count of the records that matched. 0 = not
suspended, > 0 there's at least one active suspension that spans today's
date. I can easily do the same thing in a filter.
Now that it has 'sunk in' as to why my method didn't work, I'll try your
example tonight and see what the response is (currently the only index on
the suspension table is on the Client_ID). I can create any index that I
need, so I could always index on Client_ID+Valid+Stop_Date if that would
speed the locate.
Thanks for getting this to 'click' for me.
--
Phil Frank