473,387 Members | 1,789 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,387 software developers and data experts.

Help with queries

I am running Access 2007, OS Vista.
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 one main report, which includes all 10 of the subreports. When opening the main report I have to enter the creteria month which is the same for all 10 queries. How can I open this main report and only enter the creteria one time which would satisfy all 10 queries?
--------------------------------------------------------------------------------
Feb 23 '08 #1
1 1035
Stewart Ross
2,545 Expert Mod 2GB
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 one main report, which includes all 10 of the subreports. When opening the main report I have to enter the creteria month which is the same for all 10 queries. How can I open this main report and only enter the creteria one time which would satisfy all 10 queries?
Hi kfboren. Subreports are most often linked to a main report via one or more common fields. If you are applying the same criteria to the month field in all your queries, why not remove the month criteria from the subreport queries and link the subreports to the main report via the month field? The subreports will then automatically follow the month value from the main report. The subreport properties will allow you to check the setting of master and child link fields. I use A2003 and not 2007, so I cannot be sure what changes there may be (if any) to these settings in the newer version of Access.

Without knowing more about the design and field structure of your tables it is difficult to be more specific. Have you normalised the design of your tables? There is a good article in the HowTo section of the forum on this topic, at http://www.thescripts.com/forum/thread585228.html.

I mention this because it is unusual to use 10 subreports within a main report, where if I read your question correctly it is the subreports that are doing the work. This tends to suggest to me that either the overall table design is not yet optimal, or you are not yet familiar with how to design queries to link multiple Access tables for reporting purposes. Perhaps you can provide more details of the structure of your tables, and what the main/subreports are setup to do?

Regards

Stewart
Feb 24 '08 #2

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

Similar topics

2
by: Alexandre MELARD | last post by:
Hi, My name is alexandre, I am 4th year student at the Napier university of edinburgh. I am finishing my year and do a presentation of my honours project next wednesday (the 5th of May). I am...
9
by: Dom Boyce | last post by:
Hi First up, I am using MS Access 2002. I have a database which records analyst rating changes for a list of companies on a daily basis. Unfortunately, the database has been set up (by my...
5
by: Alicia | last post by:
Hello everyone based on the data, I created a union query which produces this. SELECT ,,, 0 As ClosedCount FROM UNION SELECT ,, 0 AS OpenedCount, FROM ORDER BY , ;
8
by: Tcs | last post by:
I've been stumped on this for quite a while. I don't know if it's so simple that I just can't see it, or it's really possible. (Obviously, I HOPE it IS possible.) I'm trying to get my queries...
1
by: prabhukalyan | last post by:
Hi all, I am not so good in queries. here is my problem 2 tables to store the received items (fabric)-- inwardmaster, inwarddetails and after some processing (Dyeing) the items were...
1
by: loosecannon_1 | last post by:
Hello everyone, I am hoping someone can help me with this problem. I will say up front that I am not a SQL Server DBA, I am a developer. I have an application that sends about 25 simultaneous...
5
by: LilyRousseau | last post by:
:confused: I could really use some help A Access Database was created and put out in a shared drive--so that anyone could run these queries. I copied the db and made some changes and...
1
by: neha02 | last post by:
Hi all, this is my first post here although i've always referred this forum for help. I am trying to design a query based on 4 queries but i'm unable to get the result i want. Please help me-...
2
by: shorti | last post by:
DB2 V8.2 on AIX using C language applications. I have these two queries I would like to put together: "SELECT SUM(products.loc1_size) FROM products WHERE (location1 = 'NFUSA1') AND (main_loc IN...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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.