you just need to create a simple recordset that is filtered by a form value.
the Dreamweaver recordset interface will help you with this. For more details, click the help button in the recrodset dialog box.
Once the recordset has been created, go to the server behaviors panel, click the plus button and select Webassist utilities -> Server redirect. from the trigger select list select the recordset Empty trigger.