473,385 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Building a Report of Multiple Queries

2
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 their results. This would seem to prevent me from using the suggestions on UNIONS that I have found on this site. I also need to make the report dynamic by allowing the user to enter date ranges.

What I have so far is the ten queries and I have build an unbound form, based on a suggestion from this site, with start date and end date text boxes. I have also built a macro that opens each of the queries. The form event “On Click” call the macro which they runs each query. This results in a datasheet for each query popping up on the screen.

What I am trying to do is populate the report with the results of each query. I have tried building the report with the report wizard and selecting each query and its corresponding fields but I keep getting the following error message:

“You have chosen fields from record sources which the wizard can't connect. You may have chosen fields from a table and from a query based on that table. If so, choosing fields from only the table or only the query.”

I am lost and would appreciate any help given.

Thanks.
Mar 20 '07 #1
3 6488
Rabbit
12,516 Expert Mod 8TB
Make a report for each query. Then make a master report and use subreports.
Mar 20 '07 #2
wsox66
2
Make a report for each query. Then make a master report and use subreports.
Thanks, Rabbit.

I was able to build a report and and use the queries as sub-reports.

However, I still need to link my form to the main report. I want to enter the date range in the form and have it create the report which has the data only for that date range. How do I do that??

Thanks.
Mar 22 '07 #3
Rabbit
12,516 Expert Mod 8TB
Thanks, Rabbit.

I was able to build a report and and use the queries as sub-reports.

However, I still need to link my form to the main report. I want to enter the date range in the form and have it create the report which has the data only for that date range. How do I do that??

Thanks.
You wouldn't. The form will hold the date range. A query will reference the controls on the form. And a report will be based on the query.

You reference the controls on the form from the query using
Expand|Select|Wrap|Line Numbers
  1. #[Forms]![Form Name]![[/i]Control Name[/i]]#
The # are to delimit that it's a date. So you'd set up the criteria to filter for the dates you want in the query and base the report on that query.
Mar 23 '07 #4

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

Similar topics

6
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...
3
by: Gord | last post by:
I would like to create a summary report from the results of 11 queries (based on 2 tables). All the queries have the same format and return 3 numbers (Count, Current Year Bal, Last Year Bal.)...
3
by: Edward | last post by:
ACCESS 2k I need to design a report based on a rota system for staff at various shops. The data is effectively stored in a single table, along the lines of: Initials (e.g. BH, FG, RM etc.)...
0
by: sundowner225 | last post by:
Could someone help me with an output problem? I have an access database that I need to create some xls output from. Basically, I have three tables: Faculty_Table: Fields=ID,Name, Type,...
1
by: Stinky Pete | last post by:
Evening, I have a form that uses 5 pages (it's an electronic copy of the paper version) we are going to use for manufacturing non conformances and product deviations. In case your wondering,...
7
by: vaiism | last post by:
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...
1
by: mskapek | last post by:
I need some advise on how to best create an Access 2002 report from multiple "total" queries, each which result in 3- 5 values that I need displayed on my report. Most of the queries do simple...
2
by: kfboren | last post by:
I am wondering if someone can help me. I have created 10 tables, 10 queries for the tables and 10 reports from the quearies. The creteria for the queries is the field named "month". I have created...
3
by: Brett Barry: Go Get Geek! | last post by:
Hello, I just started using Access 2007 after using Access 2003 for a long time. I've created all my queries and they work fine. However, either I forgot or it has changed but, how do I create a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
0
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...

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.