SilverSideUp wrote: » Is it possible to prevent 1 ABC Road to be entered twice at data entry? Yes it is. In your table tbl_Member_Details you just need to make your road field a foreign key that refers to your primary key in table tbl_roads.
jleavy046 wrote: » I'm not sure I follow how that will help, but I'll definitely try it out and let you know asap. Thanks a million indeed, Joe
SilverSideUp wrote: » Your primary key in tbl_Roads uniquely identifies all roads in that table. So you can't have duplicate roads in that table. Your problem is in your second table where your field roads may contain duplicate entries. You need to introduce a constraint on that field to stop duplicate roads in that table. You do that by making roads a foreign key which references the primary key in tbl_Roads.
SilverSideUp wrote: » Sorry. I just re-read your post. You want the house number and road name not to be duplicated, is that right?
jleavy046 wrote: » I don't want any address to be entered twice. Example 1 o'Connell Street O'Connell street is a road NAME and number 1 is a field in the second table.... I can run a query to find duplicates, no bother, but how to prevent duplicates UGC the first place. Many people may live in O'Connell St, but only one person will live at number 1 O'Connell street.
SilverSideUp wrote: » Change your primary key in your second table to a combined primary key of house number and roads. Make roads a foreign key as mentioned previously.
Johnboy1951 wrote: » is membership limited to only one per household?