CrystalReport1.Connect = sDns
    CrystalReport1.Destination = crptToPrinter
    CrystalReport1.WindowState = crptMaximized
    CrystalReport1.DiscardSavedData = True
'    CrystalReport1.SelectionFormula = "{rzsj} in " & Date & "'  to '" & Date + 1 & ""
'    CrystalReport1.SQLQuery = "select fjh from tbl_krxx where datediff(d,rzsj,'" & Date & "')=0"
    CrystalReport1.SQLQuery = "select * from tbl_krxx where fjh='1101'"
    CrystalReport1.ReportFileName = "c:\krxx.rpt"
    CrystalReport1.Action = 1