Query Help

Def7

Board Regular
Joined
Mar 9, 2009
Messages
61
I'm having some trouble with a query. I set up a query that looks at a status update table and let me know which entries have a update date older than 30 days. I need it to generate a report on vehicles that have not been inspected for over 30 days. The problem I am running into is that it does only show me vehicles with dates older than 30 days but, even if a new update has been enter for that Vehicle ID, it still shows the old status based on the previous date. I can't delete the old record as I need to keep a history of each update. Can anyone help with this?
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Def7,

Is this related to the other question you asked here:
http://www.mrexcel.com/forum/showthread.php?t=381004
because the answer is going to be pretty similar. Are you just having trouble figuring out how to get the Aggregate Query to work? If so, just post back there and we can help you out with that.

Essentially, what you want to go is an Aggregate Query to return only the most recent record per vehicle. Once you have that, they apply your 30 day criteria to that.
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,533
Members
448,969
Latest member
mirek8991

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