in the repeat region, add a form with a submit button and a hidden form element to pass the order ID, the code will look something like:
<form id="form1_<?php echo $row_RecordsetName['OrderID']; ?>" name="form1" method="post" action="">
<input name="orderID" type="hidden" id="orderID_" value="<?php echo $row_RecordsetName['OrderID']; ?>" />
<label>
<input type="submit" name="submit" id="submit_<?php echo $row_RecordsetName['OrderID']; ?>" value="Submit" />
</label>
</form>
then add a delete record behavior for the orders table, set the ID column to the orderID column and the variable to use the orderID form element.
add a second delete record behavior for the order details table, set the ID column to the detailOrderID column and use the same orderID form element.