Private Sub cboBLOCK_Click()
Dim strReport As String 'Name of report to open.
Dim strField As String 'Name of your date field.
Dim strWhere As String 'Where condition for OpenReport.
strReport = "Block Summary Report"
strField = "BLOCK"
strWhere = "1=1 "
If Not IsNull(Me.cboBLOCK) Then 'block combo box
strWhere = strWhere & " AND [BLOCK] = """ & Me.cboBLOCK & """"
End If
' Debug.Print strWhere 'For debugging purposes only.
DoCmd.OpenReport strReport, acViewPreview, , strWhere
Me.Visible = False
End Sub
Private Sub Command1_Click()
DoCmd.Close acForm, Me.Name
End Sub
Thats the entire code for the form. I get no report.