Problem with subform and adding fields to picklist and txt.

Problem with subform and adding fields to picklist and txt.

I have a form Items, and form Recipe with a subform.

In my subform I need to populate a dropdown box based on the item selection.


row.PurchaseTxt=Items [ID == row.items].Purchase_Txt;
row.InventoryTxt=Items [ID == row.items].Inventory_Txt;
row.UsageTxt=Items [ID == row.items].Usage_Txt;
clear row.Usage;
row.Usage:ui.add(Row.PurchaseTxt);
row.Usage:ui.add(Row.InventoryTxt);
row.Usage:ui.add(Row.UsageTxt);

Any help would be appreciated.