the master page passes an ID to the detail page using a URL variable in the link.
on the detail page, you use the URL variable to filter the recordset using a where clause.
your recordset is not working on the detail page, because you are missing the where clause that will limit the results returned to only include those related to the URL variable.