473,765 Members | 2,203 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multiple Queries Run for Report, want to only require one user input

9 New Member
I am creating a report that outputs the contact information and details about a water treatment plant, and needs to include information about people who work there.

If I tie all the information to a single query the report contains a full set of information for the plant for each of the people who work there. If I embed multiple queries into the report, the user has to input the search criteria once for each of the queries that is being run, which is kind of a hassle.

How can I tie the queries to one user input without having one large query that returns too much information?

I have tried changing the relationships within the queries and forms I am using to filter the data but cannot seem to get a solution.

Thank you.
May 7 '07 #1
7 4729
missinglinq
3,532 Recognized Expert Specialist
I'm confused by the statement " How can I tie the queries to one user input without having one large query that returns too much information?"

The query will only return the information you ask it to! If, for example, you want a list of the employees at the particular plant with their contact phone numers, but not their addresses, you simply include their names and phone numbers, but not their addresses!
May 7 '07 #2
JConsulting
603 Recognized Expert Contributor
I am creating a report that outputs the contact information and details about a water treatment plant, and needs to include information about people who work there.

If I tie all the information to a single query the report contains a full set of information for the plant for each of the people who work there. If I embed multiple queries into the report, the user has to input the search criteria once for each of the queries that is being run, which is kind of a hassle.

How can I tie the queries to one user input without having one large query that returns too much information?

I have tried changing the relationships within the queries and forms I am using to filter the data but cannot seem to get a solution.

Thank you.

Generally...you would allow your user to either select or enter a parameter for your query/queries on a form then launch your report from there. The number of times it gets accessed via your queries is not relevent at that point.

It's not clear what you "plan" to do with your report, whether you're creating one large recordset, or creating small ones using sub-reports...so it's very hard to answer your question and still sound intelligent.
J
May 8 '07 #3
vaiism
9 New Member
I have it set up so that the user can select the search criteria for the query on a form.

I have four queries that need to be run to gather all the information for the report.
The first query gets a street address from one table. The second one gets the names of who is running the plant from a second table. The third one gets the names of employees at the plant from another table, and the fourth gets the plant's answers to a questionnaire from the last table.

The report outputs the proper amount information if there is only one employee, and the report is four pages.

If there is more than one employee at the plant, the report is (Number of Employees)*4 pages in length, as the address of the plant, name of the manager and questionnaire answers are all put into the report once for each employee, providing a lot od unnecessary duplicate information.

The employees names are in a sub form within the report set to the default view of Datasheet.

The report outputs one set of data for the plant if I keep the user input as a parameter input value in the query, although that causes the user to have to input the search criteria four times (once for each query) in a dialog box once the report is opened.

My question is how can I limit the data in the report to one set of addresses, manager and questionnaire if there is more than one employee name in the database, instead of one set being output for each employee, as it is all just duplicate information?

Thank you for your help
May 8 '07 #4
JConsulting
603 Recognized Expert Contributor
I have it set up so that the user can select the search criteria for the query on a form.

I have four queries that need to be run to gather all the information for the report.
The first query gets a street address from one table. The second one gets the names of who is running the plant from a second table. The third one gets the names of employees at the plant from another table, and the fourth gets the plant's answers to a questionnaire from the last table.

The report outputs the proper amount information if there is only one employee, and the report is four pages.

If there is more than one employee at the plant, the report is (Number of Employees)*4 pages in length, as the address of the plant, name of the manager and questionnaire answers are all put into the report once for each employee, providing a lot od unnecessary duplicate information.

The employees names are in a sub form within the report set to the default view of Datasheet.

The report outputs one set of data for the plant if I keep the user input as a parameter input value in the query, although that causes the user to have to input the search criteria four times (once for each query) in a dialog box once the report is opened.

My question is how can I limit the data in the report to one set of addresses, manager and questionnaire if there is more than one employee name in the database, instead of one set being output for each employee, as it is all just duplicate information?

Thank you for your help

You need to set up grouping in your report.

If the addresses, manager and questionnaire are all the same. Create a group for addresses, then drag the manager and questionnaire boxes into the same group section. The Employee data should remain in the detail section of your report. This will list all employees for the given group.

J
May 8 '07 #5
vaiism
9 New Member
That worked perfectly! Thank you for the help.
May 8 '07 #6
JConsulting
603 Recognized Expert Contributor
That worked perfectly! Thank you for the help.
Happy to help.
J
May 8 '07 #7
I am trying to create a report from two queries. one queries to display the personal details for one parent selected through a input prompt of a file number field(key number). The second queries is to display the list of selected parent's children at the same report.

Each child record in the children table has a file number field (same as file number from parent table).

I would like the report to display on single user input

How can i combine the output of both querries from one user input?
Oct 15 '10 #8

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

Similar topics

7
6218
by: Rick Caborn | last post by:
Does anyone know of a way to execute sql code from a dynamically built text field? Before beginning, let me state that I know this db architecture is built solely for frustration and I hope to make it better soon. Unfortunately, there is never a non-crucial time in which we can do an upgrade, so we are stuck for now. Point 1: There are multiple tables: students, courses, cross-reference
6
6090
by: BlackFireNova | last post by:
Using Access 2002 I am writing a report which draws data from several different tables. I can't link all the tables in a query, as some can not be related without truncating the data. I plan to use sub-queries and sub-reports to filter and display the data in the unrelated tables in my report. The common information is a user-inputed date range. I want to avoid having the user prompted for the and variables repeatedly. Somehow I...
1
4204
by: Steve | last post by:
I am using Access 2000 and I have a DB that is currently running four different queries from some Forms and subforms. These queries each have a date field that are seperate from each other that are from those said forms. Currently I have setup the criteria for these queries to prompt a user to enter a month # Query Field: Month() Criteria:
6
1773
by: NOSPAMrclark | last post by:
I'm wondering . . . . What is the generally accepted method for calling reports from multiple locations? Example: REPORT-A is called by selecting a record in a listbox and clicking a button. The queries behind the record use the listbox value (selected) as criteria to limit/build the report data.
11
4532
by: dskillingstad | last post by:
I've been struggling with this problem for some time and have tried multiple solutions with no luck. Let me start with, I'm a novice at Access and I'm not looking for someones help to design my database,just help in getting me pointed in the right direction. I have a database with 8 tables, which from what I have read, cannot be linked on a single form, and be updatable. I have created a query which includes all 8 tables, and then...
14
2468
by: google | last post by:
I am creating a new database for use within our company, that I'd like to make reasonably secure (short of a true server based solution). The back-end of a non-server based database seems to be the biggest security hole, due to the ease of opening, linking, and/or importing raw data directly from the back-end database. I've read information that indicates that locking down the back-end tables to the owner, then using RWOP queries in the...
1
7330
by: TonyJH | last post by:
Hello, I have a database in Access2003. I have set up several queries that use the parameter entry . Each query produces different outputs from various tables that go into a report. Sometimes, a report calls for more than one query using the same serial number. Is there a way to not require the operator to input that same parameter for every query short of building a hugh query for all the data for that report? For a group of queries, I...
3
6534
by: wsox66 | last post by:
I am new to Access and need some help building a report. I have looked through previous posts on reports but none of them seem to answer my question completely. I am using Access 2003 and I have a database with one table. I have built ten different queries to organize run calculations on the records in the table. The problem is that the queries don't all access the same columns nor do they all return the same number of rows and columns in...
5
8118
by: Brett | last post by:
Hello, Is it possible to have just one criteria and have it apply to a group of queries? I am trying to create a report with the separate results of 4 queries based on a prompt for the user to input (only once) a date. Is this something that I program into the report? Also, this is related but may require a separate posting, but can I do
0
9568
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
9398
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
10156
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
10007
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
9832
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...
1
7375
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5275
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...
1
3924
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
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.