I have 3 fields. CatID SubCatID and ProdID. In a form I have a text box that I want to show me the highest value of the ProdID where the CatID and SubCatID are the same to the record that I'm looking at. Is Dmax the right function for this? I don't quite understand the help in access for this function nor have I got it to work.