Hi @EpicTriffid ,
Do you want to remove multiple records?
If so, I suggest you know more about Remove function and RemoveIf function.
1)Remove:
syntax:
Remove( DataSource, Record1 [, Record2, ... ] [, All ] )
The first parameter is the data source, the second parameter is the record that you want to remove.
However, please notice that you need to list the record that will be moved one by one .
It's not supported to directly use Filter() to represent all the records to remove.
So you should use formula like this:
Remove('[dbo].[Units]',
First(Filter('[dbo].[Units]', Entry_ID = recordtoDelete.Entry_ID)),
//the first record
Last(FirstN(Filter('[dbo].[Units]', Entry_ID = recordtoDelete.Entry_ID),2)),
//the second record
....
)
2)RemoveIf
syntax:
RemoveIf( DataSource, Condition [, ... ] )
Since in your issue, you do not know the record number that you need to remove, so I more suggest you use RemoveIF function.
The first parameter is data source, the second parameter is condition.
However, in your original formula:
Filter('[dbo].[Units]', Entry_ID = recordtoDelete.Entry_ID),
Entry_ID = recordtoDelete.Entry_ID
You have used the condition in the first parameter and you use the same condition in the second parameter.
Please try this formula:
RemoveIf(
'[dbo].[Units]',
Entry_ID = recordtoDelete.Entry_ID
);
Here's a doc about these two functions in details for your reference:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-remove-removeif
Best regards,