Can anyone help with this?
I've three tables tblProjects, tblProjectStatus and tblProjectUpdates
A Project can only have one Status, but many Updates.
I've been using this Access 2000 query to just grab a list of projects and their relevant status:
SELECT
[ProjectID],
[ProjTitle],
[ProjDescr],
[tblProjectStatus].[ProjStatusDescr]
FROM tblProjects
INNER JOIN tblProjectStatus
ON [tblProjects].[ProjStatusID]=[tblProjectStatus].[ProjectStatusID]
ORDER BY [LastUpdated] DESC;
Now,I've added the Updates Table, I'd like to grab just the very latest Update relating to each project. I tried this:
SELECT
[ProjectID],
[ProjTitle],
[ProjDescr],
[tblProjectStatus].[ProjStatusDescr]
(
SELECT TOP 1
Author,
UpdateText
FROM tblProjectUpdates
WHERE tblProjects.ProjectID = tblProjectUpdates.ProjectID
)
FROM tblProjects
INNER JOIN tblProjectStatus
ON [tblProjects].[ProjStatusID]=[tblProjectStatus].[ProjectStatusID]
ORDER BY [LastUpdated] DESC;
But no joy. Sadly, Access is rather less specific than SQL in it's error descriptions.