Query Total Date

AdamQuestion

New Member
Joined
Jan 17, 2006
Messages
46
Hello,

I am sure this is simple but I cannot find an existing thread.

I have a query where I display a list of steps(details) to several projects and a Due date and completed date. The Due date is a required field and the completed date is not. My query is set to Totals and it finds the Last Due Date out of the steps no problem. I am also looking to find the Last Completed Date but I want it to display a blank field if there is no date listed in one of the steps for a specific project. Any help would be appreciated.

Thank You

SELECT tbl_Details.DataID, Last(tbl_Details.DueDate) AS LastOfDueDate, Last(tbl_Details.CompDate) AS LastOfCompDate
FROM tbl_Details
GROUP BY tbl_Details.DataID;
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
I think that you want to remove the "last" criteria from the completed field.
 
Upvote 0
The user would enter several steps (details) for a given project and they would place in a field when they completed that step. I would like the query to display the latest completed date. However, if the project has not been completed (all completed date fields filled in) I would like to display nothing.
 
Upvote 0

Forum statistics

Threads
1,215,026
Messages
6,122,738
Members
449,094
Latest member
dsharae57

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top