tblGroups: GroupID, GroupName; -- group names are like 'Veg', 'Fruit', etc.
tblProducts: ProductID, GroupID, ProductName --- Product names are 'Carrot', 'Apple', etc.
You can create a combo box with RowSource property like:
Code:
SELECT prod.ProductID, IIf(Nz(group,GroupID,0)=0, "", group.GroupName & ": ") & prod.ProductName AS Product FROM tblProducts prod LEFT JOIN tblGroups group ON group.GroupID = prod.GroupID ORDER BY 2 DESC
This design allows products with undetermined groups. In case you have a group for every product determined, you can skip the check for GroupID being Null in Rowsource query.
The selection list the combo will display will be like (all products are grouped by group, in case tis is present):
Fruit: Apple;
Veg: Carrot;
Veg: Eccplant;
Veg: Potato
Veg: Pumpkin;
...