H
hufflehuffle
Hi!
I am still working on the problem to use filter-by-form in a subform.
To do this, I have been advised to set the recordsource to an INNER
JOIN of the main form's records and the sub form's records.
Now I use the "ApplyFilter" event in the subform to put the
WHERE-clause in the .filter property to modify the main form's
recordsource (so all the records in the main form, where no subform
records are present, are omitted).
Now I have two problems:
- Sometimes the ApplyFilter event in the subform is simpy not fired!
This does not seem to be reproducable. If I set a breakpoint in the
event, it suddenly works again. (A2K)
- After changing the main form's record source, when returning to the
design view of the form, Access regularly crashes with "Access
encountered a problem when changing views. Access is closing."
Does anybody have an idea on this? Should I unload the form and have
another form reload it with the modified record source? Can I hide any
records with no suform records another way?
I am at a loss. This should be a functionality Access should be able to
provide natively.
Best regards,
Andreas
I am still working on the problem to use filter-by-form in a subform.
To do this, I have been advised to set the recordsource to an INNER
JOIN of the main form's records and the sub form's records.
Now I use the "ApplyFilter" event in the subform to put the
WHERE-clause in the .filter property to modify the main form's
recordsource (so all the records in the main form, where no subform
records are present, are omitted).
Now I have two problems:
- Sometimes the ApplyFilter event in the subform is simpy not fired!
This does not seem to be reproducable. If I set a breakpoint in the
event, it suddenly works again. (A2K)
- After changing the main form's record source, when returning to the
design view of the form, Access regularly crashes with "Access
encountered a problem when changing views. Access is closing."
Does anybody have an idea on this? Should I unload the form and have
another form reload it with the modified record source? Can I hide any
records with no suform records another way?
I am at a loss. This should be a functionality Access should be able to
provide natively.
Best regards,
Andreas