psycoperl
Active Member
- Joined
- Oct 23, 2007
- Messages
- 339
- Office Version
- 365
- 2016
- Platform
- Windows
- MacOS
- Web
I have two yes/no boxes (ReceivedOnATBEligible and NotATBeligible), what I need to do is modify my query which is below, to pull the most recent record with either ReceivedOnATBEligible or NotATBEligible for the specific StudentID. As there could be other records without either of the flags I can not just pull the most recent comment record.
Thanks for your assistance
Thanks for your assistance
Code:
Sql_Query = "SELECT TOP 1 CommentDate, " & _
"ReceivedOnATBEligible, NotATBeligible " & _
"FROM tblComments " & _
"WHERE (((StudentID)='" & StudentID & "'))" & _
"ORDER BY CommentDate DESC;"