Hello! I've been attempting to move my Access Database into SQL Server and use a ADP front end. I'm a newbie to Access Data Projects. Some of my .mdb queries include the LAST aggregate function. I had ran my query using the MAX function but I got a different answer than I did by using LAST. What can I do to make this work? My query looks like:
SELECT [tblDeedHistory].[PropertyNumber],
Last([tblDeedHistory].[DeedBook]) AS [LastOfDeedBook],
Last([tblDeedHistory].[PageNo]) AS [LastOfPageNo],
Last([tblDeedHistory].[PlatBook]) AS [LastOfPlatBook],
Last([tblDeedHistory].[PlatPage]) AS [LastOfPlatPage]
FROM [tblDeedHistory]
GROUP BY [tblDeedHistory].[PropertyNumber]
ORDER BY [tblDeedHistory].[PropertyNumber],
Last([tblDeedHistory].[DeedBook]),
Last([tblDeedHistory].[PageNo]);
SELECT [tblDeedHistory].[PropertyNumber],
Last([tblDeedHistory].[DeedBook]) AS [LastOfDeedBook],
Last([tblDeedHistory].[PageNo]) AS [LastOfPageNo],
Last([tblDeedHistory].[PlatBook]) AS [LastOfPlatBook],
Last([tblDeedHistory].[PlatPage]) AS [LastOfPlatPage]
FROM [tblDeedHistory]
GROUP BY [tblDeedHistory].[PropertyNumber]
ORDER BY [tblDeedHistory].[PropertyNumber],
Last([tblDeedHistory].[DeedBook]),
Last([tblDeedHistory].[PageNo]);