Look up list creation

Is it possible to generate a look up list from unique data items in a project file?  My particular case is to create a list of unique geology codes from received AGS GEOL_GEOL data and then assign to a colour table.

Thanks in advance

Roger Margerison