Well with the information provided I would say you need to create a form with the option group on it and a button to run the report. Write a procedure for the button that takes the value of the option group and assigns the proper name to a variable.
Button_Click()
Dim strName
Select Case me.optiongroup1
Case 1
strName = "John Doe"
Case 2
strName = "Joe Bloe"
End Select
I would then use this name to create the SQL string I am looking for.
strSQL = "SELECT * FROM [Table1] WHERE [Name] = '" & strName & "';"
I would then open the report in design view, assign the SQL as the record source, save the report and open it in preview mode.
DoCmd.Echo False
DoCmd.OpenReport "Report1", acViewDesign
Reports!Report1.RecordSource = strSQL
DoCmd.close acReport, "Report1", acSaveYes
DoCmd.Echo True
DoCmd.OpenReport "Report1", acViewPreview
The only draw backs to this method are that you have to run the report from the form and it is a little slow.
I hope this points you in the right direction.
BAKEMAN
![[pimp] [pimp] [pimp]](/data/assets/smilies/pimp.gif)