How do I programmatically generate a menu based on field values?
This could be achieved by using taxonomy to define your terms and the Taxonomy Menu module to create the menu from these terms. Taxonomy is the preferred method for categorising content.