Hi @Xiangchen_2019
Patch('[Stage].[Adv_Advising]',First(Filter('[Stage].[Adv_Advising]',StudentID = StudentID.Text and event_id = Dropdown1.value )),{Registered_ind:1})
Firstly, First(Filter can be replaced by Lookup (more efficient way)
Lookup('[Stage].[Adv_Advising]',StudentID = StudentID.Text and event_id = Dropdown1.value )
So your patch can look like:
Patch('[Stage].[Adv_Advising]',
Lookup('[Stage].[Adv_Advising]',StudentID = StudentID.Text and event_id = Dropdown1.value )
,{Registered_ind:1})
Next, check to see if Lookup('[Stage].[Adv_Advising]',StudentID = StudentID.Text and event_id = Dropdown1.value ) matches an item in SQL to update, if it does not find a record, then it cannot patch/update your item
Add a label(for testing only) and set its text property to
Lookup('[Stage].[Adv_Advising]',StudentID = StudentID.Text and event_id = Dropdown1.value ).StudentID
If this does not get the student id, that means this function is not returning/matching any item in ur sql table
Alos, Dropdown1.value - should probably be Dropdown1.Selected.Value
Regards,
Reza Dorrani
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly