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 / Forms Programming / January 2007

Tip: Looking for answers? Try searching our database.

applyFilter

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
FilemakerPro_Developer - 31 Jan 2007 18:59 GMT
There are two reports in a value list text field and also  a text field with
a list of quarters on a form,like,  "FY 01/07, FY12/06, FY11/06 etc.  This
code opens the report based on a query but it doesn't filter it.  In the
query of the report I have this same fiscal year period field.  The field is
called FY Reported but that is a typo it is really the Fiscal Quarter I don't
want to change anything.

How do I apply the filter in the code?  The Select query would be something
like:
Select * from queryXXX WHERE [FY Reported] = me.fiscalQtr?
Where do I put the select query and how do I apply the filter so it opens
the report with only the quarter requested?
Private Sub cmdGetReport_Click()
'On Error GoTo Err_cmdMediatorEvalCum_Click
   Dim stDocName As String
   Dim stFiscalQtr As String
   Dim strFilter As String
   
   stDocName = Me.ReportName
   stFiscalQtr = Me.FiscalQtr
   
   DoCmd.OpenReport stDocName, acPreview, , strFilter
   ApplyFilter
End Sub
THANKS!
Signature

Janis

FilemakerPro_Developer - 31 Jan 2007 23:25 GMT
I am going to reword this question.  
Janis

> There are two reports in a value list text field and also  a text field with
> a list of quarters on a form,like,  "FY 01/07, FY12/06, FY11/06 etc.  This
[quoted text clipped - 21 lines]
> End Sub
> THANKS!
 
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.