so the link to the details page:
productcategories_Detail.php?CategoryID=2
passes the id in a URL variable named:
CategoryID
In your recordset, you have set the filter to use a URL variable named:
ProductCategoryID
edit the recordset and set the filtering section to use the column named ProductCategoryID = to URL variable named CategoryID