The simplest way is to use a Form, not a datasheet, and put a CommandButton
on the Form... use the unique ID of the currently selected record to create
the WHERE clause without the WHERE that is needed for the WhereCondition
argument of DoCmd.OpenReport... something like
Dim strWhere as String
strWhere = "[SerialNumber] = " & Me!txtSerialNumber
DoCmd.OpenReport "rptSomeRep",,,strWhere
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.