OK, when I add the where field to the select on 2nd query it allows the page to run but returns 0 as result, could this be due to the master page not sending a variable named Param2? I cant imagine I need to create 2 variables & parameters for each master/detail?
Can I use variables instead of parameters in DW do you know? When I try this in phpmyadmin it runs fine, something like WHERE tblreferral.RefferalID=$_GET['ReferralID']
Thanks Jason..