In a continuous form that is based on HarvestTable, I want a drop down for Units with values from CommodityTable that correlate to the Commodity, but will populate the HarvestTable Units column upon selection. The Commodity is already in the HarvestTable, so if the Commodity is equal in both, I'd like the Units for that Commodity to show in the drop down.
CommodityTable
ID Commodity Units UOM
1 Beans 27 LB
2 Broccoli 37 LB
3 Broccoli 18 BU
4 Broccoli 33 LB
5 Carrot 24 BU
So for Broccoli, I'd like the drop down to have 37, 18, and 33 as options in the Units drop down on the form. Then the selection will populate the Units column in the HarvestTable.
I tried this in the Row Source: SELECT Units, Commodity FROM CommodityTable WHERE Commodity = HarvestTable.Commodity; This is not working. If you know what I am doing wrong and want to help, I'd sure appreciate it very much. Thank you for your time.