A family of Microsoft relational database management systems designed for ease of use.
You could try this cross tab query:
Create a new query using Query design mode. Then switch to SQL view and paste the following query into the SQL window.
Replace "YourTable" with the actual table name:
TRANSFORM Last(YourTable.[Expired]) AS LastOfExpired
SELECT YourTable.[Company Name], YourTable.[Address], YourTable.[City], YourTable.State, YourTable.Zip
FROM YourTable
GROUP BY YourTable.[Company Name], YourTable.[Address], YourTable.[City], YourTable.State, YourTable.Zip
PIVOT YourTable.[Type];
This will return the last instance of the expired dates. I f you want the first set change the last function to First. (You can also use Min or Max.
| Comp A | 123 St | Best | NY | 12345 | 5/23/2016 | 12/31/2016 | 5/1/2016 | 5/1/2016 |
|---|