I have a query with a field called TotalToDate
I have placed the following DMax function in that field
The question Marks represent the criteria part I can not figure out
Basically i want the function to return the max value of the TotalToDate field where the Service field in the query is the same value as the service field in the table.
I hope I am making sense. I have searched and can not find anything here like this though I am certain that it is here. I just can't find it. Any help would be gratly appreciated
I have placed the following DMax function in that field
Code:
DMax("nz([TotalToDate])","tbl_ProgramInvoiceLineItem","[Service]=????")+[ServiceCost])
The question Marks represent the criteria part I can not figure out
Basically i want the function to return the max value of the TotalToDate field where the Service field in the query is the same value as the service field in the table.
I hope I am making sense. I have searched and can not find anything here like this though I am certain that it is here. I just can't find it. Any help would be gratly appreciated