ApplyFilter event

L

Louverril

I only want to allow record filtering in the subform at teh lowest level the
only way I can find to do this (allowfilters etc.. all tried) is the
following code in the maniform adn the mainfroms ist level subform.

However the code runs twice before the Applyfiler event finshed and you have
to OK the msgbox twice.

Private Sub Form_ApplyFilter(Cancel As Integer, ApplyType As Integer)
MsgBox "You can not filter these records."
Cancel = True
End sub

How can I stop this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top