Can't get this query to work. Cannot successfully differentiate between the 2 IDs
See 2 of my attempts attached
DMax in query but 2 possible IDs for criteria
-
- 5StarLounger
- Posts: 926
- Joined: 09 Feb 2010, 00:33
- Location: Patterson Lakes, Victoria, Australia
DMax in query but 2 possible IDs for criteria
You do not have the required permissions to view the files attached to this post.
Avagr8day, regards, Peter
-
- Administrator
- Posts: 76155
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: DMax in query but 2 possible IDs for criteria
I don't see why the second one wouldn't work. How about
ThisOB: (SELECT Max(Q.OnBoardingCommencedTbl) FROM tblOnBoarding AS Q WHERE Q.ID=tblOnBoarding.ID)
ThisOB: (SELECT Max(Q.OnBoardingCommencedTbl) FROM tblOnBoarding AS Q WHERE Q.ID=tblOnBoarding.ID)
Regards,
Hans
Hans
-
- 5StarLounger
- Posts: 926
- Joined: 09 Feb 2010, 00:33
- Location: Patterson Lakes, Victoria, Australia
Re: DMax in query but 2 possible IDs for criteria
Thanks Hans. I realized that I should have put the DMAx statement in the Criteria part of the query design. When I realized that, about 10 mins after posting, I deleted the post. Or at least I thought I did.
Soon after that, I realized that I didn't need it for what I wanted to achieve.

Soon after that, I realized that I didn't need it for what I wanted to achieve.
Avagr8day, regards, Peter