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

Report repeating records

I am developing a DB for a lab and at the end of the day i need to generate reports and send by email to supervisors, i had seven different reports to begin with, which i have brought down to 3, by creating relationships but the only problem is right now is that the tables for e.g. daily sand lab data, friability, Loi Molding Sand. Say, Daily sand lab data table has 7 records for one day and friability and Loi have only 1-2 records, now when i create a joined report, it repeats data again n again for the friability and LOI and instead of one page there are 3-6 pages in report, can someone please suggest me a simpler way of doing the same.

Thanks,
Tulika
Apr 4 '07
55 5155
Rabbit
12,516 Expert Mod 8TB
Foreign Key, Primary Key.
Apr 18 '07 #51
Table 1. Daily Sand Lab

Field Name; Field Type; PK/FK
ID ; Autonumber; PK
Date; Date/Time;
Time; Date/Time;
Unit; Text;
Operator ; Text;
Temp;. Text;
Mois. ; Text;
MB ; Text;
MB % ; Text;
Compactibility; Text;
GS ; Text;
Perm ; Text;
Sp. Wt ; Text;

Table 2. Friability of Green Sand

Field Name; Field Type ; PK/FK
ID ; Autonumber; PK
Date ; Date/Time ;
Time; Date/Time ;
Unit ; Text;
Operator; Text;
% Mois ; Text;
MB Clay; Text;
Comp% ; Text;
Total Sp. Wt; Text;
Wt. of Sand in pan; Text;
% Friability ; Text;

Table 3. LOI Molding Sand
Field Name ; Field Type ; PK/FK
ID ; Autonumber ; PK
Date ; Date/Time ;
Time ; Date/Time ;
Unit ; Text;
Operator ; Text;
Core # ; Text;
Sample Wt. ; Text;
Gross Wt. ; Text;
Tare Wt. ; Text;
After Furnace wt. ; Text;
% LOI ; Text;

Query 1
It relates all the above tables by Date and ID.

In case you have any other questions, please ask me.
Apr 18 '07 #52
Rabbit
12,516 Expert Mod 8TB
I don't see any relation between your tables.

Is the following the queries you're using now?
The following SQL for Lab Sand Data:
Expand|Select|Wrap|Line Numbers
  1. SELECT [Lab Sand data].Operator, [Lab Sand data].Date, [Lab Sand data].TIme, [Lab Sand data].Unit, [Lab Sand data].Temp, [Lab Sand data].Mois, [Lab Sand data].MB, [Lab Sand data].[MB%], [Lab Sand data].Compactibility, [Lab Sand data].GS, [Lab Sand data].Perm, [Lab Sand data].[Sp Wt]
  2. FROM [Lab Sand data]
  3. WHERE ((([Lab Sand data].Date) Between [Forms]![frmReports]![txtStartDate] And [Forms]![frmReports]![txtEndDate]))
  4. ORDER BY [Lab Sand data].Date, [Lab Sand data].Unit;
The following SQL for Friability of Green Sand :
Expand|Select|Wrap|Line Numbers
  1. SELECT [Friability of Green Sand].Date, [Friability of Green Sand].Operator, [Friability of Green Sand].Time, [Friability of Green Sand].Unit, [Friability of Green Sand].[% Moisture], [Friability of Green Sand].[MB Clay, ml], [Friability of Green Sand].[Comp %], [Friability of Green Sand].[Total Specimen Weight], [Friability of Green Sand].[Wt of Sand Collected in the Pan], [Friability of Green Sand].[% Friability]
  2. FROM [Friability of Green Sand]
  3. WHERE ((([Friability of Green Sand].Date) Between [Forms]![frmReports]![txtStartDate] And [Forms]![frmReports]![txtEndDate]));
The following SQl for LOI Molding Sand:
Expand|Select|Wrap|Line Numbers
  1. SELECT Loimold.Date, Loimold.Time, Loimold.Unit, Loimold.Operator, Loimold.[Sample Weight], Loimold.[Wt of crucible], Loimold.[Wt of crucible + Sample 9 Before heating)], Loimold.[Wt of crucible + Sample (After heating)], Loimold.[% LOI]
  2. FROM Loimold
  3. WHERE (((Loimold.Date) Between [Forms]![frmReports]![txtStartDate] And [Forms]![frmReports]![txtEndDate]));
You also might want to think about renaming your Date and Time variables to something else as right now it's using reserved Access words.
Apr 18 '07 #53
Yess, these are the SQL's for the tables Sand Lab Data, Friability of Green Sand and Loi Molding Sand.

What do i change the time and date variables as , and why do we need to change them, what relationships are required?
Apr 18 '07 #54
Rabbit
12,516 Expert Mod 8TB
Yess, these are the SQL's for the tables Sand Lab Data, Friability of Green Sand and Loi Molding Sand.

What do i change the time and date variables as , and why do we need to change them, what relationships are required?
Relationships aren't required. It just seems to me that you are creating 3 very different reports whose only common factor is the time period and I was wondering if there was anything beyond that.

Date and Time are functions within Access and as such, if you name anything after one of those functions, it can cause problems later.

If indeed those are your SQL and you've done everything as I laid out, then I am stumped to as why it's still asking you to define your parameters 6 times. The only remote possibility I could think of was the fact that your fields are named after reserved words in Access.
Apr 18 '07 #55
Relationships aren't required. It just seems to me that you are creating 3 very different reports whose only common factor is the time period and I was wondering if there was anything beyond that.

Date and Time are functions within Access and as such, if you name anything after one of those functions, it can cause problems later.

If indeed those are your SQL and you've done everything as I laid out, then I am stumped to as why it's still asking you to define your parameters 6 times. The only remote possibility I could think of was the fact that your fields are named after reserved words in Access.
I dont know, i am already running out in time becuase of the deadline of this project and i dont know how i can really sort it out now :(, nothing is working, i think we should have a provision in this wepage to exchange DB's as it will make life more easier.

Do u have any other email address where i can zip it to you becuase if you just review it once i am sure something will work out.

Thanks ,
Tulika
Apr 20 '07 #56

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

Similar topics

4
by: dixie | last post by:
I have a report which has records of students in various courses. It would normally show say 400 entries for 80 students doing an average of 5 courses each. I want to say on the report how many...
6
by: Mike Conklin | last post by:
This one really has me going. Probably something silly. I'm using dcount for a report to determine the number of different types of tests proctored in a semester. My report is based on a...
2
by: Emilio Jimonerz | last post by:
Hello. I am developing a project tracking database that records the following information: 1. Project name 2. Lead person(s) 3. Support person(s) 4. Clients 5. Contacts The data is organized...
2
by: Alpha | last post by:
I have a C# program that user would select several search criteria and then outputs to the Crystal Report. A message is output to user if no matching record is found. In my code I also clear,...
2
by: owyn999 | last post by:
Right so, I've got a report that I wrote a few months ago and just now we started using it. This report is a dynamic report coded mostly in Visual basic with all of the fields being can shrink and...
12
D Giles
by: D Giles | last post by:
Access 2003: A subreport control (sum total calculated textbox located in the subreport report footer) does not show total of all records when referenced as a total in the main report footer - only...
1
by: jglabas | last post by:
For a report, I am using a query as my record source. The query produces 5 columns by 3272 records. The data in columns 1 & 2 (“Objective” and “Rating”) repeats every 409 records The data for...
1
by: alhomam | last post by:
hi all i have a table with many columns and i need to create a report that the user can select the columns he needs to show in the report. is it possible? thanks
4
by: zufie | last post by:
I have a report that return all the records (materials ordered) by all callers each day. I want the report to just show all the records (materials ordered) by each individual caller each day on...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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.