Added field as master/detail link

I have a generated field in my master that grabs the unique id of the detail table. I want to use that generated field (voteid) as my link between master/detail. It does not give me the generated field as a possible foreign key option. Any way to make this happen? There are no other fields that give me the one specific record I want for detail.