Thanks Ray
I deleted the line and found an error in one of the links.
I now get
Details
This record has been removed.
Later I updated the recordset for the detail page. This opened the page for the first record.
I attach a picture of the recordset. Maybe the Add Variable is incorrect?