Do you have the same problem when you've only set one filter? Does it
matter
which of the two subforms?
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
That does work great except when I try to close the form I get a
pop-up.
The pop-up says:
This action will reset the current code in break mode.
Do you want to stop running the code?
No matter what I select I eventually have to hit [ctrl][shift][esc] and
force the application to close.
:
Yes, that should work.
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
I promise as soon as possible I am going to start taking
programming
classes.
Any suggestions would be appreciated as well.
That said is this how it should look to filter both subforms
simultaneously?
Private Sub Command15_Click()
With Me.Child0.Form
.Filter = "SumOfExternalEvents IS NOT NULL"
.FilterOn = True
End With
With Me.Child2.Form
.Filter = "SumOfExternalEvents IS NOT NULL"
.FilterOn = True
End With
End Sub
:
Sure. Exactly the same again for Child2.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Reply to group, rather than allenbrowne at mvps dot org.
message
One more question. Is it possible to apply that filter to two
subforms
at
the
same time? Child0 and Child2 both have the same field names and
search
criteria.
:
This should do it:
With Me.Child0.Form
.Filter = "ExternalEvents Is Not Null"
.FilterOn = True
End With
If there is any chance that the main form could also have a
filter,
see:
Incorrect filtering of forms and reports
at:
http://allenbrowne.com/bug-02.html
The next version of Access (2007) will have this bug fixed.
message
I am having difficulty finding the best method to do this so
any
help
would
be appreciated.
Main form name is FrmReviewAccuracy312
SubForm name is FrmNCLocAccuracy312 or Child0 in the main
form.
SubForm gets its data from a query named QryNCLocAccuracy312
What I would like is to have a command button on the main
form
that
when
clicked filters a field on the subform to exclude all null
values.
The
specific field in the query is called ExternalEvents.