473,399 Members | 2,774 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,399 software developers and data experts.

Current & lastweek completed %

Hello twinnyfo,

Thanks for your continous reply.

If I am confusing you, sorry. Forget about the previous postings and attachements. I am telling straight way with this new posting.

Herewith I have attached 3 attachements as: Query -1 (Status as on date.19-11-14), Query -1 (Status as on date.26-11-14) and Query -3 (Current & lastweek completed %).

1) Query -1 (Status as on date.19-11-14) = This query is updated on dated 19-11-14

2) Query -1 (Status as on date.26-11-14) = This query is the same query of the above ,but (with updated datas) on dated 26-11-14.

3) Query -3 (Current & last week completed %) = This is the query to be generated from the above query -1 (please open the attachement & see the date).I want this query's formula (Code)

Now I have manually typed this table for Query -3 (Current & last week completed %). I want this query formula.

This is I need.

Can you make the formula for this Query -3?

Thank you

Regards
Rexon
Nov 26 '14 #1
4 1035
twinnyfo
3,653 Expert Mod 2GB
Rexon,

Please remember that when you post pictures, they are automatically reduced in size to the max allowable on this site, so all your pics are tiny and fuzzy. Please embed in a word document so we can actually see what you are trying to explain.
Nov 26 '14 #2
twinnyfo
3,653 Expert Mod 2GB
Also, it appears you have everything you need, which is why I am even more confused, now. If you have your first two queries, you can easily calculate the percentages for each week.

All you need is another query that looks at the two weeks and compares the values. We are not going to do the work for you. You have not even shown what your original queries are and we don't know your table structure, which could affect how we work toward a solution.

Again, we still need more information before anyone can properly guide you through this project.
Nov 26 '14 #3
Dear twinnyfo

I Need your help. So nothing I have to hide.

1) Query -1 (Status as on date.19-11-14)
2) Query -1 (Status as on date.26-11-14)

The above are same query. For your explanation I have shown you as two screenshots in different dates.

I used the code for the query-1 is :

SELECT [Tbl WWTP Procedures].ProcedureNumber, [Tbl WWTP Procedures].[Draft Complete], [Tbl WWTP Procedures].[1st Editing Complete], [Tbl WWTP Procedures].[Supervising Complete], [Tbl WWTP Procedures].[2nd Editing Complete], [Tbl WWTP Procedures].[Final Editing Complete], IIf([Draft Complete]+[1st Editing Complete]+[Supervising Complete]+[2nd Editing Complete]+[Final Editing Complete] Is Null," "," Approved") AS [Final status]
FROM [Tbl WWTP Procedures];

As per my previous post, I need the query for my attachent "Query -3 (Current & last week completed %)"

Thank you

Regards
rexon






@twinnyfo
Nov 27 '14 #4
twinnyfo
3,653 Expert Mod 2GB
Rexon,

For your first two queries, rather than merely listing the projects and their status, these should count the projects in each status. Because you have shown that you can identify these records, counting should be simple.

However, based on the query you have provided, I don't see how that query can return the values you provided in your Original Post. There is no way to differentiate dates (or as of dates) in your query. If you ran that particular query on a particular day, then you will get the results you want. However, as stated previously, what you need to do is design a query (and thus a table structure that supports it) in which you can put in one date and the query will generate the status of the records as of that date--which is not what you have.

Additionally, in your query, you use the following calculated field:

Expand|Select|Wrap|Line Numbers
  1. IIf([Draft Complete]+[1st Editing Complete]+[Supervising Complete]+[2nd Editing Complete]+[Final Editing Complete] Is Null," "," Approved") AS [Final status]
However, it appears that [Final Editing Complete] is the only field you need to check for being Null, as this is the Field that determines if the draft is Approved, Yes?

An additional question has to do with the number of records you want this to apply to. The challenge is that if you want this only to apply to "Records Not Approved", once that document is approved, it would be dropped from the list. This is OK, but you just need to be able to understand it.

I don't know how you are sending your desired date to your Query--which is what is going to drive this entire thing.

Here is a sample query that may help:


Expand|Select|Wrap|Line Numbers
  1. SELECT [Enter Your Date] AS AsOfDate,
  2.     Sum(IIf([Tbl WWTP Procedures].[Draft Complete]<=[AsOfDate],1,0))/Sum(IIf([Tbl WWTP Procedures].[Final Editing Complete] Is Null,1,0)) AS DCNow,
  3.     Sum(IIf([Tbl WWTP Procedures].[Draft Complete]<=DateAdd("d",7,[AsOfDate]),1,0))/Sum(IIf([Tbl WWTP Procedures].[Final Editing Complete] Is Null,1,0)) AS DCLast
  4.     Sum(IIf([Tbl WWTP Procedures].[1st Editing Complete]<=[AsOfDate],1,0))/Sum(IIf([Tbl WWTP Procedures].[Final Editing Complete] Is Null,1,0)) AS FirstNow,
  5.     Sum(IIf([Tbl WWTP Procedures].[1st Editing Complete]<=DateAdd("d",7,[AsOfDate]),1,0))/Sum(IIf([Tbl WWTP Procedures].[Final Editing Complete] Is Null,1,0)) AS FirstLast
  6.     Sum(IIf([Tbl WWTP Procedures].[Supervising Complete]<=[AsOfDate],1,0))/Sum(IIf([Tbl WWTP Procedures].[Final Editing Complete] Is Null,1,0)) AS SupvNow,
  7.     Sum(IIf([Tbl WWTP Procedures].[Supervising Complete]<=DateAdd("d",7,[AsOfDate]),1,0))/Sum(IIf([Tbl WWTP Procedures].[Final Editing Complete] Is Null,1,0)) AS SupvLast
  8.     Sum(IIf([Tbl WWTP Procedures].[2nd Editing Complete]<=[AsOfDate],1,0))/Sum(IIf([Tbl WWTP Procedures].[Final Editing Complete] Is Null,1,0)) AS SecondNow,
  9.     Sum(IIf([Tbl WWTP Procedures].[2nd Editing Complete]<=DateAdd("d",7,[AsOfDate]),1,0))/Sum(IIf([Tbl WWTP Procedures].[Final Editing Complete] Is Null,1,0)) AS SecondLast
  10.     Sum(IIf([Tbl WWTP Procedures].[Final Editing Complete]<=[AsOfDate],1,0))/Sum(IIf([Tbl WWTP Procedures].[Final Editing Complete] Is Null,1,0)) AS FinalNow,
  11.     Sum(IIf([Tbl WWTP Procedures].[Final Editing Complete]<=DateAdd("d",7,[AsOfDate]),1,0))/Sum(IIf([Tbl WWTP Procedures].[Final Editing Complete] Is Null,1,0)) AS FinalLast
  12. FROM [Tbl WWTP Procedures]
  13. WHERE [Tbl WWTP Procedures].[Final Editing Complete] Is Null
  14. GROUP BY [Enter Your Date];
I have no idea if this will give you the results that you need, as I am free-handing this without having access to your data.

It might get you close.
Dec 1 '14 #5

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

Similar topics

0
by: Plumer | last post by:
Hello everyone, Yesterday I posted a message about implementing drag & drop in a TreeView control. I'm having real difficulty getting this to work -- the process seems to be incredibly...
3
by: Vic | last post by:
Dear All, I have a database of laboratory records in Access 2000. There is one form which acts as an interface to input experimetal data. This form incorporates information from several tables....
2
by: Melissa | last post by:
I have a single (not continuous) form with an Undo button for entering finished projects. On the form is also a subform that lists all finished projects for reference. When I enter the...
8
by: Z D | last post by:
Hello, I'm having a strange problem that is probably due to my lack of understanding of how threading & COM Interop works in a WinForms.NET application. Here's the situation: I have a 3rd...
1
by: terry.statham | last post by:
Hope someone can help me here. I am fairly new to Access. I have set up a database relating to vehicle movements prior to sale. I have a subform based on 'locations' table which is linked to my...
0
by: bughunter | last post by:
Local server C:\TRACE>db2level DB21085I Instance "DB2" uses "32" bits and DB2 code release "SQL08024" with level identifier "03050106". Informational tokens are "DB2 v8.1.11.973", "s060120",...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
9
by: JFS | last post by:
I know most of you have probably read "The C Programming Language" (K&R) at some point. Well here is something that is driving me crazy. The exercises are impossible (most of them) for me to do....
8
by: bytes access nubie | last post by:
In MS Access, we are trying to write code that will loop through all databases in the current folder AND subfolders to create a table (or file) containing a list of the database names, their LINKED...
1
by: Parita Pandya | last post by:
I am preparing a to do list in which there is Status (completed / not yet) and Task name in sheet 1. In sheet 2 (completed) the task which is marked completed is moved with the current time. Now I...
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: 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: 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
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
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.