Hi,
I encountered a problem when defining variables. First, I assigns collection from the sql database to a variable (onVisible property of screen):
Set(varMyCollection, Filter(Table1, ID = varSelectedUser));
Then I set the DefaultSelectedItems parameter of the combobox to varMyCollection.

Up to this point everything is working fine.
In the next step, I add a button that is responsible for adding new values to Table1. After each addition, I want to refresh the currently selected items with this code
Patch...
Refresh(Table1);
Collect(varMyCollection, Last(Table1));
Reset(Combobox);
Collect(varMyCollection, Filter(Table1, ID = varSelectedUser));
The problem is that when adding the above code to the button, there is an error in the onVisible property of screen next to my Set(varMyCollection.... that says: Unexpected character. The formula contains 'Ident' where 'Data' is expected