Hi,hope someone can help.<br><br>I think what I am trying to do should be relatively simple but am having problems.<br><br>I have two tables in my database, one called detais and one called industrytypes. In the detais table a there is a field called category which consists of text such as Advertising, New Media. There is also a field called catcode which holds a number which corresponds to the content of the category filed ie Advertising 1. My client is inputing the category data manually and also has to check which code they have to put in. Is there a way of storing all the category names in another table (industrytypes) which have their own unique ID and then comparing the entry in the category field with the fields in the other table and then returning the relevant ID into the catcode filed in the details table?????<br><br>I've tried relationships and queries but just don't seem to be able to get the hang of this. I WANT TO LEARN!!!!<br><br>Hope someone can help, even if it's poining me in the direction of tutorials.<br><br>Thanks in advance<br><br>Euan