I am using on the screen TextBox. When the variable is true , the data of text box get saved by patch command button.
But the value which I am selecting is based on the Lookup of combo box.
When it is new record it is ok, I select the combox box, based on the selection it fill my text box and I saved.
But when I want to correct the info of the text, then my I want to select another selection of combox box, But that does get applied as the old record is based on SearchResultGallery_3.Selected.AddressTo
Confused, how to correct the code. I want in both the situation New or Old Record the ability to select Combox to get the value and later save it.
Please advise what correction to be done in the below code
If(gblReturnNewRecord,
LookUp(TablePartsReturnAdd,SelectTo = ComboBox1_1.Selected.SelectTo,AddressP)
, SearchResultGallery_3.Selected.AddressTo)