Hi everyone. I am trying to update a DV table from inside a gallery where the datasource of the gallery is different from the DV table I am trying to update. I have used a lookup and patch in a similar situation but cannot figure this one out.
The datasource of the gallery is Depot-Lineitems, and I am trying to patch to the column crd63_qtyonhand in DV table Depot-Parts.
The error I am getting is below as well as the code from the patch. Thanks all for the help!

Patch(
'Depot-Partss',
LookUp(
'Depot-LineItems',
crd63_barcodenumber = ThisItem.crd63_barcodenumber
),
{crd63_qtyonhand:5}
)