passing a single recordset to hmtl on form validation

passing a single recordset to hmtl on form validation

on clicking the button of my form I would like to open a new window with  the result of the same record in a Html ( just because I need to print  with a specific Layout as a report )
How can I pass the last record parameters in my new html window ?
What is the code ? 
thanks in advance