Private Sub cmdPrint_Click()
Dim sWhere As String
sWhere = IIf(Me.lstDayToPrint <> "All", "TransDate=#" & Me.lstDayToPrint & "#", "(1=1)")
sWhere = Replace$(sWhere, ".", "/")
'MsgBox "WhereCondition: " & sWhere
'Exit Sub
Me.Visible = False
DoCmd.OpenReport _
reportName:="Report1", _
View:=acViewPreview, _
WhereCondition:=sWhere
End Sub