I have a combobox whose items are from a lookup field in a list.
Items:
Choices(SPList.Country)
I wanted to set a variable with a lookup() based on a combobox item since I'm going to use that for a switch case.
I tried doing
Set(_Country, LookUp(SPList, 'item' = _item, Country))
or
Set(_Country, LookUp(SPList, 'item' = _item, Country).Value)
but theres an error in the Switch function and_Country returns blank if i used UpdateContext.
Switch(_Country,
"USA",
Set(_rates, _usRate),
"EU",
Set(_rates, _euRate))
Any help or workarounds is appreciated.