OK, I found out I don't know enough about your dB.
I tried to create a test dB w/ forms & queries.. didn't go as planned. I created 2 saved queries. Neither gave errors:
Code:
SELECT tblMSRP.*
FROM tblMSRP
WHERE (((tblMSRP.ID)=DMin("ID","tblMSRP","gen_group = '" & [gen_group] & "'")) AND ((tblMSRP.rate)=DMax("rate","tblMSRP","gen_group = '" & [gen_group] & "'")));
Code:
SELECT tblMSRP.*
FROM tblMSRP
WHERE tblMSRP.ID = DMin("ID","tblMSRP","gen_group='" & Forms!MainForm.[gen_group] & "'") AND rate = DMax("rate","tblMSRP","gen_group = '" & Forms!MainForm.Parent.[gen_group] & "'");
If I took out the ID part of the where clause, I got one record, as I expected. I couldn't get the subform to return records if I had both criteria in the query.
So, not knowing what your main form record source is and not knowing what any of the data looks like, I hit a wall.
I don't understand how a record can have the ID (autonumber??) be the minimum AND (at the same time) the rate be max.
Either one of the queries above will execute without errors. but that is as far as I could get.