You could use TempVars, which are global, updateable, and destroyable. I use them to pass information between forms. You could have a form to select a farm, store that ID like this:
TempVars.Add ("FarmID"), iFarmID
Assuming iFarmID was set in the farm selection form.
Now FarmID is available...