W
WebDude
Here is part of my query (a column from the query builder window)..
ChildsLocation: (SELECT "(" & IIf([HomeType] Like
"Resident*",IIf(IsNull([HomeName]),[HomeType],[HomeName]),[HomeType])
& ")" FROM ChildsLocationTable WHERE
(((ChildsLocationTable.Date)=(SELECT Max(T.Date) FROM
ChildsLocationTable As T WHERE T.[fkRequestID] = ChildsLocationTable.
[fkRequestID]))) AND Requests.pkRequestID =
ChildsLocationTable.fkRequestID)
...everything works fine unless records with identical
ChildsLocationTable.fkRequestID values also have identical
ChildsLocationTable.Date values.
What code could i add to the above subquery that would force a value
to be returned even if there is a tie for first place?...which is what
I thought MAX(T.Date) would do?
Cheers,
WebDude
ChildsLocation: (SELECT "(" & IIf([HomeType] Like
"Resident*",IIf(IsNull([HomeName]),[HomeType],[HomeName]),[HomeType])
& ")" FROM ChildsLocationTable WHERE
(((ChildsLocationTable.Date)=(SELECT Max(T.Date) FROM
ChildsLocationTable As T WHERE T.[fkRequestID] = ChildsLocationTable.
[fkRequestID]))) AND Requests.pkRequestID =
ChildsLocationTable.fkRequestID)
...everything works fine unless records with identical
ChildsLocationTable.fkRequestID values also have identical
ChildsLocationTable.Date values.
What code could i add to the above subquery that would force a value
to be returned even if there is a tie for first place?...which is what
I thought MAX(T.Date) would do?
Cheers,
WebDude