Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 15th, 2004, 01:19 PM
katrina63 katrina63 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: Kentucky
Posts: 5 katrina63 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Show Total Pages Only Once

I have a query that contains a part number and the number of hours per day generated to complete each book. I need to develop a report that shows number of hours worked and total number of pages per book. Then I need to calculate the pages per hour. The problem I'm having is that when I try to run a query I can't seem to get the number of pages to show up only once per part number. The number of pages shows up for every day time was calculated. How can I accomplish this task?

Last edited by katrina63 : November 15th, 2004 at 01:20 PM. Reason: Should have stated query not report.

Reply With Quote
  #2  
Old November 16th, 2004, 07:56 AM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 5
Hi Katrina63,

Post the sql from your query and let me look at what you are trying to do.

lwells

Reply With Quote
  #3  
Old November 16th, 2004, 12:19 PM
katrina63 katrina63 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: Kentucky
Posts: 5 katrina63 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
SELECT qryNewTranslationProofreading.[BR #], qryNewTranslationProofreading.[ACT BR PG], qryNewTranslationProofreading.[DATE SHPD], qryTimeTable.Employee, qryTimeTable.Department, qryTimeTable.[Total Time]
FROM qryNewTranslationProofreading INNER JOIN qryTimeTable ON qryNewTranslationProofreading.[BR #] = qryTimeTable.[BR #]
GROUP BY qryNewTranslationProofreading.[BR #], qryNewTranslationProofreading.[ACT BR PG], qryNewTranslationProofreading.[DATE SHPD], qryTimeTable.Employee, qryTimeTable.Department, qryTimeTable.[Total Time]
HAVING (((qryNewTranslationProofreading.[ACT BR PG]) Is Not Null))
ORDER BY qryTimeTable.Department;

Reply With Quote
  #4  
Old November 16th, 2004, 01:37 PM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 5
Hi katrina63,

From your post apparently the calculations are being performed in the qryNewTranslationProofreading query and not this query. I am also assuming that the calculated field [ACT BR PG] is where you have your question "The problem I'm having is that when I try to run a query I can't seem to get the number of pages to show up only once per part number". Being that the problem is not in this query, can you post me the sql from the query qryNewTranslationProofreading. Probably wouldn't hurt to post the qryTimeTable as well if it has any calculations in it.

lwells

Reply With Quote
  #5  
Old November 16th, 2004, 01:43 PM
katrina63 katrina63 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: Kentucky
Posts: 5 katrina63 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
qryNewTranslationProofreading

SELECT tblTranslationProofreading.[BR #], tblTranslationProofreading.[ACT BR PG], tblTranslationProofreading.[DATE SHPD]
FROM tblTranslationProofreading
WHERE (((tblTranslationProofreading.[ACT BR PG]) Is Not Null));

Reply With Quote
  #6  
Old November 16th, 2004, 01:44 PM
katrina63 katrina63 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: Kentucky
Posts: 5 katrina63 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
qryTimeTable

SELECT tblTimeTable.[BR #], tblTimeTable.Date, tblTimeTable.[Start Time], tblTimeTable.[End Time], tblTimeTable.Employee, tblTimeTable.Department, Format([Start Time]-1-[End Time],"Short Time") AS [Total Time]
FROM tblTimeTable
WHERE (((Format([Start Time]-1-[End Time],"Short Time"))>"00:00"))
ORDER BY tblTimeTable.[BR #], tblTimeTable.Department;

Reply With Quote
  #7  
Old November 17th, 2004, 09:06 PM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 5
Hi Katrina63

Which Field holds your Part Number and which Field holds your page numbers. And in which table is this data stored.

lwells

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Show Total Pages Only Once


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT