Trying to create a calculated field to show the OpenPayable field based on the Max(Date) Problem is the query does not like Max being used with a booleen field.
I have a query with 3 records that have a date and a booleen field of Open/Closed. 2 are closed and one is open but the one that is open is the latest date. How do I show the value of the booleen field where the date is the greatest.
MyGuess which does not work… Max(APInvHead.InvoiceDate), ApInvHead.OpenPayable
And set the field type to nvarchar
Sounds like you need to do a subquery to return the boolean effectively. Have 1 field in the subquery and return the subquery name in a calculated field