Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / October 2004

Tip: Looking for answers? Try searching our database.

Filter Sub Report

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cynthia - 19 Oct 2004 22:17 GMT
I have a form that calls up another filter that sets a glove variable from
the users selection.  It thens calls up a report that is filtered by this
global variable.  In this report I have a subreport.  When I try to put the
filter variable in the event proceedure on open  for the subreport I get an
error message THE SETTING  YOU
ENTERED ISN"T VALID FOR THIS PROPERTY.  How can I get the subreport to
filter with the variable the user selected?
cynthia - 19 Oct 2004 23:35 GMT
I just figured this out I had to use the record source of the sub.  I put the
variable
in the on open event . i.e. Me.RecordSource = strSubQry
I put the filter criteria in with the query text. i.e.
strSubQry = "SELECT [Supports Cold].* FROM [Supports Cold]WHERE " &
gstrFilterText & ""

gstrFilterText is my global variable

> I have a form that calls up another filter that sets a glove variable from
> the users selection.  It thens calls up a report that is filtered by this
[quoted text clipped - 3 lines]
> ENTERED ISN"T VALID FOR THIS PROPERTY.  How can I get the subreport to
> filter with the variable the user selected?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.