Forum Discussion
Tony2021
Jan 05, 2022Iron Contributor
Balance with Max
 Hello Experts,     I have a simple query and I need to show the tblLetterOfCredit.[Balance] based on the MAX of qryBalLC.ID.  I have been fiddling around with it for awhile and I guess my approach is...
- Jan 06, 2022
you maybe right, see Query1 (also query qryLC_MaxDate).
 
MariaBarnes
Jan 05, 2022MVP
The approach you should take is a two step approach.  In the first query, leave out the Balance and just group by letterofcreditID.  Then join that query to your qrybalLC query on MAX(qryBallLC.ID) = ID to get the correct Balance and the ID for the letterofcreditID.