But now I have a strange theoretical question, why didn't DISTINCT appear in the form properties, and yet, even stranger, was still operative? "
When you open a form in design view, you see the saved recordsource, which is most likely the recordsource that was put into it when it was designed. If the recordsource is changed in the code, that's just temporary (unless the form design is then saved).
So you could set the recordsource to be:
Code:
SELECT Grantees.*, Grants.* FROM Grants INNER JOIN Grantees ON Grants.GranteeID = Grantees.GranteeID where Grantees.GranteeID = " & Me.SelectGrantee & " AND Grants.GrantID = " & Me.SelectGrant
...in the code, but unless you save the form (which I don't recommend doing all the time, btw - it causes database bloating. In fact, go out of your way to stop the form from being saved whenever possible), then what you see in design view will be the last saved recordsource. And if you initially designed the form with, "SELECT Grants.* FROM Grants", and never changed it in design view since then, and never saved the form, then that's still what you will see.
Which is good... in design view, you want to see what the form starts out with, before any of the code is applied. Otherwise, you wouldn't be able to follow it.
Katie