I'm creating a collection from selected items in a list box with the code below:
Collect(colMCCNum, {MCCNum:ListBox1.SelectedItems})
This creates a single column collection. I then want to patch rows of the data source HOBOs using the above collection when MCCNum = MCCId and set the Available column to "Checked Out"
ForAll(colMCCNum, Patch(HOBOs, LookUp(HOBOs, MCCId = MCCNum), {Available:"Checked Out"}))
The problem is that in the Look Up function the "=" gets an "Invalid argument type" error. It seems the MCCNum is not a text value and can't be compared to MCCId but I can't figure out how to fix the code. Any help would be much appreciated!