A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

MS Access - Five and Seven day queries



 
 
Thread Tools Display Modes
  #1  
Old May 1st, 2010, 02:46 AM posted to microsoft.public.access.queries
Beeyen
external usenet poster
 
Posts: 100
Default MS Access - Five and Seven day queries

Good Day Experts

Situation:

I have a query in which I am trying to create to address the following data
in my table. The coding is created in two parts

Changes completed (qryTask):

SELECT [tblWorkload Information Tracker].ProductionAssigned, [tblWorkload
Information Tracker].DatatrakNumber, [tblWorkload Information
Tracker].DateReceived, [tblWorkload Information Tracker].WorkType,
[tblWorkload Information Tracker].WorkCategory, [tblWorkload Information
Tracker].EffectiveDate, [tblWorkload Information Tracker].QandALead,
[tblWorkload Information Tracker].QAComplete, (IsNull([QAComplete])+1) AS
Done, ([QAComplete]-[DateReceived]) AS Elapsed
FROM [tblWorkload Information Tracker]
WHERE ((([tblWorkload Information Tracker].QAComplete) Between [Beginning
Date] And [Ending Date]));

Changes completed in 5 and 7 days: qryTaskInterval

SELECT [tblWorkload Information Tracker].ProductionAssigned AS Expr1,
[tblWorkload Information Tracker].DatatrakNumber AS Expr2, [tblWorkload
Information Tracker].DateReceived AS Expr3, [tblWorkload Information
Tracker].WorkType AS Expr4, [tblWorkload Information Tracker].WorkCategory AS
Expr5, [tblWorkload Information Tracker].EffectiveDate AS Expr6, [tblWorkload
Information Tracker].QandALead AS Expr7, [tblWorkload Information
Tracker].QAComplete AS Expr8, [Elapsed] AS Expr10, IIf([Elapsed]=5,1,0) AS
5_Day, IIf([Elapsed]=7,1,0) AS 7_Day
FROM [tblWorkload Information Tracker]
WHERE ((([tblWorkload Information Tracker].QAComplete) Between [Beginning
Date] And [Ending Date]));

Desired Results:

What I would like assistance with is combining the two queries with no
duplicates and how to include:
The total number of entries completed'
The total number of entries = 5 days and percent to the total completed’
The total number of entries = 7 days and percent to the total completed’
How to exclude holidays and weekends

Any assistance you can provide would be much appreciated. (db included)

 




Thread Tools
Display Modes

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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:13 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.