473,952 Members | 1,695 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do you filter an Access Sub-Report

2 New Member
I have several sub-reports in an Access report. All of the sub-reports use the same Query. I want to create a Filter so when the main report is opened, each sub-report shows is respective, (but different), records. I created in the Sub-reports Filter property the following:

"[Range]='Reports![West-3]![Text15]'" And "[GraveDesc] = 'Reports![West-3]![Text16]'"

Text15 and Text16 are text boxes in the sub-report where their Data property is hardcoded. Text15's is: ="West" and Text16's is: "4" (4 is text; not numerical). The main report is not related to the sub-reports using Master and Child criteria. The stupid/easy way to do this is to create 12 Query's for the 12 sub-reports but I want to learn how to do it the right way and use one query with individual criteria in the sub-report. Right now, I get all records, not filtered ones. Help please!

Chuck
Apr 21 '11 #1
2 7850
Charles Coleman
2 New Member
Solved: Simpler than the above Filter that didn't work. What works is: [Range] = "West" and [GraveDesc] Like "4*"
Apr 21 '11 #2
TheSmileyCoder
2,322 Recognized Expert Moderator Top Contributor
The normal way to limit sup reports is to use the properties of the control containing the sup report. Look for the properties "Link Child Fields", "Link Master Fields". If for example your main report is customers and your supreport contains their orders, and they are linked by the Primary key of the customer ID_Customer, you would write ID_Customer in both the "Link Child Fields" and the "Link Master Field" to show only that customers orders for each report.

Im sure you can find some examples of this in the Northwind sample database.
Apr 22 '11 #3

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

Similar topics

1
2481
by: Lou | last post by:
I'm using the Response Filter Class in MS KB article 811162 (http://support.microsoft.com/default.aspx?scid=kb;EN-US;811162) to generate a static htm page from an asp.net template page being filled from a database. The generated static pages are then streamed into FreeTextbox editor for user edits. I want to use a variable for the filename since each user will need a separate temporary template page. The system works fine for a...
2
9056
by: Alain. | last post by:
Good evenig to all, I use Access 2000 and i want to build a database for my photographs (jpeg files). All the 3 methods I saw make the base grow up. Is it a activeX control which could display the picture without importing it in the base ? and where could I find it. Thank you Alan
1
3747
by: Simon | last post by:
Hello All I am trying to build a couple of forms in Access 2000. Whilst I have one form which has all of the contact details in it also generates (using autonumber) a unique id for the customer. I have also created a button to open up another form which looks at a second table. I want the ID automatically populated into the form (tables are designed one to many) so that correspondence can be added. At the moment access states that...
2
11949
by: DD | last post by:
I have a command button that applies a filter by customer name, i want a Cmd Button to remove the filter, Access does not supply one can anyone help. Regards DD
2
2006
by: Pj | last post by:
hi, i am new to vb.net and i am stuck at a particular point in my project. i have two nested classes (because vb.net does NOT allow multiple inheritance) ----------------------------------------- Class DrawingCanvas Inherit System.Windows.Forms.Form
1
1997
by: bwakefield | last post by:
Hello, I am currently working on a Stock Control database and I am trying to set a filter on the form using a combo box. At present I am using a continuous form with the combo box being placed in the header so that it is always viewable. I have put the code in to the form however every time i select anything in the combo box I get an error message saying: The combo box name is: cmbProductSearch The code that I have in place is:
3
5991
by: zivon | last post by:
I have two forms: clients orders when they both open, when I change clients it automaticly filter the orders for that client. now I created a form which includes 2 sub forms inside it... (clients and orders) and it doesn't filter since there is no such form open... Forms!.Filter = " = " & Me.
1
1341
ammoos
by: ammoos | last post by:
Hi Friends I have an issue in the MS Access Sub Form The Sub form contains Student Name, Address and one selection field(it’s a check box. in the database table, it specified as “Yes/No” field. Field name is “SelectionStatus”. So when I click on this check box, the “SelectionStatus” field in the table should me update with out any code). I have also placed a checkbox to check all checkbox in the sub form or uncheck it(I done it by updating...
4
2067
matthardwick
by: matthardwick | last post by:
Hi Everyone, I have a problem with Access that I can't seem to solve: I have a sub form recordset changing acording to the value of a drop down box. http://users.aber.ac.uk/mrh/licencerecord.jpg I tried this code:
1
4311
by: Aaron Melo | last post by:
I am working on database and I want to open form and its two subforms as read when the user clicks a button on another form. I opens the form as read only but not the subforms. Here is my code for the button: Dim stDocName As String Dim stLinkCriteria As String stDocName = "FRM_TT" stLinkCriteria = "=" & Me! DoCmd.OpenForm stDocName, , , stLinkCriteria
0
10188
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
10004
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,...
1
11388
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9922
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
7455
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();...
0
6243
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4571
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3569
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.