No Smelly, you've misunderstood my intent. Try the following:
(a) Remove the
SELECT *
FROM Query1b
WHERE [Sample Id] = Forms!ChainOfCustody!BBCID
lines from the above code. The Sub should then just look like:
Private Sub checkbox1_Click()
DoCmd.OpenReport "InternalLab1b", acViewPreview
End Sub
(b) Go into design view of the Query1b query, and in the query grid, make sure that you have a [Sample Id] field displayed as a column in the grid.
(c) In the criteria cell below the [Sample Id] field, enter the reference to the Form control; ie.:
Forms!ChainOfCustody!BBCID
(d) Save the query. I assume that Query1b provides the recordsource for the report.
That should now associate the form parameter to the report, via the query.
Hope this clarifies things,
Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
(dont cut corners or you'll go round in circles)