Solved

Filter Report Results

Posted on 2011-03-01
5
651 Views
Last Modified: 2012-08-14
Good monring Experts,


I am having a heck of a time with this.


I need to develop a filter that will filter results based on dates. The report I have designed is a preformance report that will show preformance from week to week. On the report i have a feild "ShipDate" that i use to let access recognize when the start date of that product was. I would like the filter to return to me the results of a given time period. So when the user opens the report they are asked what results they are shown.

Can anyone help me do this?

I have a report menu and have a button linked to the report. I would like a box to come up and ask for the filtering criteria: For instance,
After User clicks the report on the menu, a box would come up Start Date- they would enter 2/14/2011 and then the next box would come up End Date: they would type 3/1/2011....

And it would filter the results based on that.

Can anyone help me out with this?


thanks!



Can an
0
Comment
Question by:hcp27
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:kelle1
ID: 35008509
In the query that is the data source for the report enter this in the criteria field of the ShipDate field

between [Start Date] and [End Date]

Assuming you do not have fields on the report named Start Date or End Date this will cause Access to prompt for the information to be used when the report is run.
0
 
LVL 10

Expert Comment

by:t_hungate
ID: 35008645
This is very doable. Are you populating the report via a query or SQL statement? If you use SQL you can prompt the user for input as the SQL is executed.

I am on my mobile at the moment but can provide you an example if need be.

See if this post helps at all.
http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_10057857.html?sfQueryTermInfo=1+10+30+date+input+report+sql+user
0
 

Author Comment

by:hcp27
ID: 35009375
The report I am use is from data found on a table. No Query or SQl was generated to make this report.

Dose that change anything?
0
 
LVL 4

Accepted Solution

by:
kelle1 earned 500 total points
ID: 35009493
go into the properties of the Report, click the Datqa tab.  Click in the record source field, and then click the build button (...).  It will ask you if you want to build a query based on the table, click Yes.

In the query window double click the asterisk (*) and then locate your ShipDate field in the list and double click that.
Uncheck the box on the Show row below ShipDate, and enter "between [Start Date] and [End Date] " (omit the quotes) on the Criteria row below ShipDate.
0
 

Author Closing Comment

by:hcp27
ID: 35009539
Awesome.


Now i have a simular feild,
PO#.

How do i get the same box to show up whent hat report is open to filter by PO#?
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question