I am wrestling with a simple patch function to update a record based off the value of an text input control. What I want is for PowerApps to update a record where a value in a table = the value in a text input field.
Table2 contains my data. ID is unique for each row. ProjID is the name of the text input control. This contains the value of ID that I want to update. Current Phase is the column I want to update with the value in projID.
I have based the code below off some code which I use to create new records which works, so I think it is the lookup element that is not working.
Patch( Table2, lookup(Table2,Id = ProjID.Text ), { 'Current Phase': CurrentPhase.Text, } ) )
Any help would be greatly appreciated!