473,508 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is it possible to create a dropdown filter for reports generated in Access?

16 New Member
I am creating a report which refences two table. One lists activity types and descriptions, the other lists the historical productivities in those activities. The problem is there are hundreds of activities and I would like users the option easily filter the activities. The effect that I am looking for would very simmilar to the filters on Pivot Tables.
Jul 30 '10 #1
3 1736
patjones
931 Recognized Expert Contributor
Are you opening the report from a form on which you can put the combo box in order to facilitate the filtering?

Pat
Jul 30 '10 #2
Marc Brown
16 New Member
On my navigation pane I have the form available to enter the records and a list of standard reports generated from the records, but there is no direct link between the form and the report.
Jul 30 '10 #3
patjones
931 Recognized Expert Contributor
I'm thinking along the lines of using the OpenReport method to open the filtered report:

Expand|Select|Wrap|Line Numbers
  1. DoCmd.OpenReport "Report Name", acViewPreview, , "[field name] = [combo value]"

The fourth argument in OpenReport is a filter argument, and it behaves just like the WHERE clause in a SQL query. Your report will open with the records filtered according to that argument. You can include AND's to enable filtering on more than one combo box selection. The simplest thing is probably to put a command button on the form which, when clicked, opens the report, with the OpenReport code being in the On Open event for the report.

Pat
Jul 30 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
7199
by: Jan Bols | last post by:
I'm using Oracle 8.1.7 on a linux server. I'm using ms access 2002 as a front end to connect to the dbserver with the oracle ODBC driver on a win2k machine. When I use the filter functionality...
1
2635
by: intl04 | last post by:
I am getting strange print-related error messages when trying to create (not print!) reports. For example, when I click 'new' to create a report then choose 'design view', I get an error message...
0
1069
by: Grant | last post by:
Hi Is it possible to produce a report in Access that looks like the Outlook monthly calendar? I want to show which of our rooms have been booked in any particular month cheers James
2
2006
by: cjay85 | last post by:
I wish to direct reports that I have created in Access to Excel enabling me to produce a graphical output from Excel. The report is a simple query regarding responses to a letter mailing. There...
3
3396
by: Parasyke | last post by:
I see a lot of jobs advertized for people knowing Crystal Reports. I tried to use this platform 6 years ago and found it awkward and difficult. I find Access, using ODBC, to grab data and build...
0
2162
by: PughDR | last post by:
As the subject of this topic suggestions I am trying to find a way to use ASP, SQL Server, Com+ and Crystal Reports 8.5 to Create Dynamic PDF Reports Over The Web, but the only article I found that...
1
2310
by: NithyaJai | last post by:
Hai, I got a doubt on creating a view? Is that passible to create a view in MS Access 2000....... if so plz help me to do it... Thanks....
1
1387
by: SGLL | last post by:
Hello everybody, I have made 2 reports in ACCESS, and I need to print them together in one single page, I can't figure out how to join 2 differrent reports. Thank you
3
1597
by: bockyweez | last post by:
Let me start off by stating that I use Access, but have limited knowledge in SQL... I do have a good understanding of programming (C++) though, so I can follow the logic behind it. But I use dirty...
4
6187
by: Bre035 | last post by:
I am attempting to create several weekly reports that look at the last seven days exluding the current day, but I have not been able to successfull pull the correct information. I use the several...
0
7229
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7129
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7398
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5637
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1566
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
428
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.