Private Sub Command3_Click()
If IsNull(Me.Combo0) Then Exit Sub
DoCmd.OpenReport "报表", acViewPreview, , , , Me.Combo0
End Sub
在报表上
Private Sub Report_Open(Cancel As Integer)
Dim strSQL As String
strSQL = "select * from [0000000000] where 组='" & Me.OpenArgs & "'"
Me.RecordSource = strSQL
End Sub