473,779 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Apply Filter to A Report

I already have a report designed under Reports. When I use filtering in Forms
or Tables, I see no way to select that filtered list when I am in Reports, and
there appears to be no way to do the filtering when I am in Reports.

I have received two replies to this message, posted a few days ago within
another Subject. One requires making programming type statements. That should
not be necessary -- Access must have a quick way to just click on something to
apply the filter to my already formatted report layout. The other reply said to
base the report on a query -- it appears to me I can only do that if I then
create a new report.

Thanks to anyone who can give me the simple instructions that must be in
Access, but sure are not in the Help menus.

Neil
Cat Paintings At Carol Wilson Gallery
http://www.carolwilsongallery.com
Nov 13 '05
16 18420
Nhmiller wrote:
DoCmd.OpenRep ort "Roster", acViewPreview , , Me.Filter

Would you be able to tell me where in Access (Help or otherwise) there is an
explanation of this command, and if there is a Help section with instructions
about writing code for the various needs you have run into? Thanks.


Well...versions after A97 use a Help-less system. It's slow, impossible
to use, obtuse, unsorted, and generally considered crap by anyone with
an education above kindergarten. However, it is promoted by MS. It's
possible they are doing this to help in the sales of computer books.
It's also possible that the project managers at MS are satisfied with
second rate products or that few people ever complained to MS that their
help system is worth shit.

That being said, you should be able to search and find Docmd. Also,
OpenReport. or OpenForm. Be prepared to work harder and longer to find
information in the MS Help-less system. (How can a MS
help-documentation worker have any pride in this crap?)

If you can't find it in the MS Help-less (tm) system, you may need to
purchase/read a book on it. Quite a few books on Office are worthless too.


Neil
Cat Paintings At Carol Wilson Gallery
http://www.carolwilsongallery.com

Nov 13 '05 #11
Nhmiller wrote:
Create the query. Then change the 'Record Source' property of
the existing report to the name of the query.

I created the query using the query wizard. I selected all the fields, then did
a filter by selection on one of the fields. When I go to the report tab and
right click on the report name, then click on properties, there is just a
general tab and a window to enter descriptive information. Where is Record
Source? Thanks.


You are looking at the properties of the report *document*. To see the
properties of the report *object*, it has to be open, in design view.
Click the Design button to do that.

I suggest you realize Access is difficult to use until you get a grasp
of its object model, and where to look for what. To get such a grasp,
digging into an existing application is a great step.

What version do you use? 97?
Nov 13 '05 #12
>Nhmiller wrote:
Create the query. Then change the 'Record Source' property of
the existing report to the name of the query.

I created the query using the query wizard. I selected all the fields, then

did
a filter by selection on one of the fields. When I go to the report tab and
right click on the report name, then click on properties, there is just a
general tab and a window to enter descriptive information. Where is Record
Source? Thanks.


You are looking at the properties of the report *document*. To see the
properties of the report *object*, it has to be open, in design view.
Click the Design button to do that.


I had tried that before, but now I see I have to right-click on the blue title
bar of the design window for the Properties to come up. As usual, the Help
menus do not tell you this -- Access' Help system is terrible. Once I am in the
Properties, I tried using the name of the query in Record Source. The problem
is I must not have created the Query correctly. In the Query section, a table
appears, the same as if I go to Table. I then did a Filter on Selection, but I
don't know how to save that so that when I go to Reports and enter the name of
the query in Record Source, I get the filtered records. Appreciate you
explaining what to do next. Thank you.


I suggest you realize Access is difficult to use until you get a grasp
of its object model, and where to look for what. To get such a grasp,
digging into an existing application is a great step.
Yes, I'm doing that, too. But, it's obvious that using the Help menus is of
very little use -- they are highly technical and code-oriented without any
explanations of how to learn and use the code. There should be a tutorial
and/or detailed examples of how to do at least the common operations. I am
surprised Microsoft gets away with this. I also have two books on Access
requested at our library -- I'll have those next week.

What version do you use? 97?


Office XP, which I think is also called Office 2002.

Neil
Cat Paintings At Carol Wilson Gallery
http://www.carolwilsongallery.com
Nov 13 '05 #13
>Nhmiller wrote:
Create the query. Then change the 'Record Source' property of
the existing report to the name of the query.

I created the query using the query wizard. I selected all the fields, then

did
a filter by selection on one of the fields. When I go to the report tab and
right click on the report name, then click on properties, there is just a
general tab and a window to enter descriptive information. Where is Record
Source? Thanks.


You are looking at the properties of the report *document*. To see the
properties of the report *object*, it has to be open, in design view.
Click the Design button to do that.


I had tried that before, but now I see I have to right-click on the blue title
bar of the design window for the Properties to come up. As usual, the Help
menus do not tell you this -- Access' Help system is terrible. I was able to
select the query, then change the No to a Yes to use the query, and it all
worked. Your method is better than another one described earlier in this
thread, as yours does not require any programming or coding -- the filter I use
in Query is saved and named, and available to use in the Report. Thank you.

I suggest you realize Access is difficult to use until you get a grasp
of its object model, and where to look for what.
It's only difficult to use because the Help menus give no explanation of how to
do the most simple tasks. I assume you learned how to do this from an earlier
version that had better Help, or from your own research, as I am doing.
To get such a grasp,
digging into an existing application is a great step.
Yes, I'm doing that, too. But, it's obvious that using the Help menus is of
very little use -- they are highly technical and code-oriented without any
explanations of how to learn and use the code. There should be a tutorial
and/or detailed examples of how to do at least the common operations. I am
surprised Microsoft gets away with this. I also have two books on Access
requested at our library -- I'll have those next week.

What version do you use? 97?


Office XP, which I think is also called Office 2002.

Neil
Cat Paintings At Carol Wilson Gallery
http://www.carolwilsongallery.com
Nov 13 '05 #14
Nhmiller wrote:
I had tried [viewing properties] before, but now I see I have to right-click
on the blue title
bar of the design window for the Properties to come up.
That is not the only way! There is a Properties item in the View menu;
there is a Properties button on the toolbar.
As usual, the Help
menus do not tell you this -- Access' Help system is terrible.
I suggest you examine whether your bad experience so far gets in the way
of your ability to look around. I must be honest to say I never have
used Access XP (so far) and hence I don't know a thing about its Help.
My experience with Access 97 is fine.

Maybe Microsoft documentation is not your thing. Learn it, then. I
understand you are seasoned in other environments, and I ensure you this
can be done.

I get the hint that you don't like the information sources, so far.
Please do not further mention this.

0> Once I am in the Properties, I tried using the name of the query in Record Source. The problem
is I must not have created the Query correctly. In the Query section, a table
appears, the same as if I go to Table. I then did a Filter on Selection, but I
don't know how to save that so that when I go to Reports and enter the name of
the query in Record Source, I get the filtered records. Appreciate you
explaining what to do next. Thank you.
A query is basically a stored SQL statement. For reports, the only
useful statement is SELECT because that returns records.
Such a query can contain any filter. When you have the query in Design
view, the filtering is displayed as criteria line(s). I believe the
interface is "Query By Example". When you have the query in SQL view,
the filtering is in the WHERE clause.

How familiar are you with SQL, actually?

To use a filter, you enter the corresponding expression in the correct
place, save the query--probably using a different name to indicate what
the query filters--and use that as recordsource for the report. I take
it you have noticed you can choose the recordsource from a dropdown list.
[...] using the Help menus is of very little use -- they are highly technical
and code-oriented without any
explanations of how to learn and use the code.
In my experience there are two environments of Help. The one is about
using Access, forms, controls, and whatsoever; the other is VBA help, so
for all coding issues. I do find the former helpful, whenever I don't
know exactly how to do something. To get the basic understanding,
however, one needs more information. You must have some general idea
where to go.
I am surprised Microsoft gets away with this.


That is all marketing.

Now, how about that Northwind sample I keep nagging about?
Nov 13 '05 #15
I revised the message you responded to, as I was successful using query and
report. I stated that your method works without resorting to codes constructed
by the user -- that's the way software should work. The old message must have
made it through to your newsgroup site anyway. I think it is important that we
express our opinions about product improvement -- Microsoft could have made
their Help section far better, but chose not to. One contributor to this thread
said it's because they want to sell books on using Office. If they are being
greedy, I think we should let them know. I'm lucky there's people like you
answering questions on newsgroups. I now have a good feel for how Access works.
Thank you.

Neil
Cat Paintings At Carol Wilson Gallery
http://www.carolwilsongallery.com
Nov 13 '05 #16
Nhmiller wrote:
I revised the message you responded to, as I was successful using query and
report. I stated that your method works without resorting to codes constructed
by the user -- that's the way software should work. The old message must have
made it through to your newsgroup site anyway.
Yes, I saw there was a second post. Only after I sent my reply.
I think it is important that we
express our opinions about product improvement -- Microsoft could have made
their Help section far better, but chose not to. One contributor to this thread
said it's because they want to sell books on using Office. If they are being
greedy, I think we should let them know.
Mmm, don't get me wrong: I fully agree. I suspect, though, that future
versions of Access will *not* contain all the good advice that the share
of users, among who those that visit these newsgroups, collects. Some
*does*. And there's no crying over spilled milk, version XP was released.

I'm lucky there's people like you answering questions on newsgroups. I now have a good feel for how Access works.
Thank you.


Any time, keep asking until everything works.
Nov 13 '05 #17

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1391
by: MaryD | last post by:
Is there any way to use the enter key - or a function key - as the Apply Filter when a form is opened in FilterByForm mode? I can see the value of function keys and the enter key when the form is open in Normal mode using the key down event but this does not work when the form is opened in filterbyform mode. Thank you for you help, MaryD
4
2611
by: Iyhamid | last post by:
Hi I am looking for codes to filter and apply filter to my data base using access
3
16956
by: mattscho | last post by:
Hi All, Trying to create a set of 3 buttons in a form that have the same effect as the "Filter by Form", "Apply Filter" and "Remove Filter" Buttons on the access toolbar. Help would be muchly appreciated. Cheers.
1
6059
by: mattscho | last post by:
Re: Filter By From, Apply Filter, Remove Filter Buttons in a Form. -------------------------------------------------------------------------------- Hi All, Trying to create a set of 3 buttons in a form that have the same effect as the "Filter by Form", "Apply Filter" and "Remove Filter" Buttons on the access toolbar. Help would be muchly appreciated. Cheers. In the Click() Event of 3 Command Buttons, place the following code: Code: (...
2
11258
by: Nhoung Ar | last post by:
Can anybody out there help me please on apply filter in MS Access. I have a form that create from the query, which contain field chidid (text field), in the form footer, I add the button to open another form (searchF form), which have an unbound text box (text1). It works fine with this code: DoCmd.ApplyFilter , "childid='" & Form_SearchF.Text1 & "'" But if I change the data type of childid field to number it does't work. The error...
3
10957
by: Supermansteel | last post by:
I am trying to run a Apply filter for everytime someone opens Form_CC it will only show the Test (Test_ID) they are working on. This seems to be the closest I have gotten to filtering it correctly, however it doesn't work when the form is opened. Is there something I am doing wrong on this? Private Sub Form_Open(Cancel As Integer) DoCmd.ApplyFilter Form_CC.Form.filter = "Test_ID = 28" Form_CC.Form.FilterOn = True End Sub
1
3143
by: eHaak | last post by:
A couple years ago, I built a database in MS Access 2003. I built the form using macros in some of the command buttons, and now I’m trying to eliminate the macros and just use visual basic code. I’ve been successful in doing this for most of the buttons, but I’m having trouble reprogramming some Apply Filter buttons on one form and could use some help. So I have a Contacts List form that lists all of the division’s staff members...
3
2690
by: dbdb | last post by:
hi guys need your suggestion how can i apply filter for my date variable data type i have a form name transaction and i have a text box on it named : start and finish i need to apply filter my data using that 2 data. i have to view data for the transaction date between start and finish date.
10
15197
by: dbdb | last post by:
Hi, i create a chart in ms access based on my query, then i want my chart when is it open is only show value based on my criteria. i'll try to used it in the properties apply filter using the expression, it didn't work. the chart still viewing all data. and i used the event "on open" and used "applyfilter" command then it shown an error. "that the report isn't bound with the query"
0
9636
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10306
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10138
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9930
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8961
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4037
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 we have to send another system
3
2869
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.