If you are using a bound form to assign the relationships, then the work should already be done for you....it will detect the same key relationship and prompt you that you cannot save the record because this relationship already exists...
If you are using an unbound form, or for some reason this check is not working as it should, let me know and I will show you a bit of code that can do the check for you....but it is better to use Access' built in check when possible.
****************************
Only two things are infinite, the universe and human stupidity,
and I'm not sure about the former. (Albert Einstein)
Robert L. Johnson III
MCSA, CNA, MCP, Network+, A+
w: rljohnso@stewart.com
h: wildmage@tampabay.rr.com