Hi, I'm hoping some of you migh have some suggestions.  I have 3 tables:
DefendantInfo: DefendantID, Defendant Name
Address: AddressID, DefendantID, and Address (each defendant can have more than one address)
Citations: CitationNo, DefendantID, AddressID
Currently I've got my Address table set up so that the primary key is DefendantID + AddressID (to make sure they can have many addresses, but the addresses should be unique). Each citation can only have one defendant and one address. I'm trying to set up a relationship between the Address and Citations table and having some problems. Citations should only be allowed to enter the AddressID associated with their DefendantID.
Am I going to have to change my table design?
Hope I've explained my problem clearly ....
Any pointers would be helpful.
Doh! Edited again. Reason number one why I shouldn't post at 7 in the morning but this has been nagging me all night.
 DefendantInfo: DefendantID, Defendant Name
Address: AddressID, DefendantID, and Address (each defendant can have more than one address)
Citations: CitationNo, DefendantID, AddressID
Currently I've got my Address table set up so that the primary key is DefendantID + AddressID (to make sure they can have many addresses, but the addresses should be unique). Each citation can only have one defendant and one address. I'm trying to set up a relationship between the Address and Citations table and having some problems. Citations should only be allowed to enter the AddressID associated with their DefendantID.
Am I going to have to change my table design?

Hope I've explained my problem clearly ....
Any pointers would be helpful.
Doh! Edited again. Reason number one why I shouldn't post at 7 in the morning but this has been nagging me all night.

			
				Last edited: 
			
		
	
								
								
									
	
		
			
		
		
	
	
	
		
			
		
		
	
								
							
							 
	
 Initially I was just giong to allow the users to change the DefendantID if they found a matching defendant on two different citations, but I don't think I want people changing the primary key.  If someone has a better idea of how I should I should implement this, it would be appreciated.
  Initially I was just giong to allow the users to change the DefendantID if they found a matching defendant on two different citations, but I don't think I want people changing the primary key.  If someone has a better idea of how I should I should implement this, it would be appreciated.
 
 
		