Ayuda con reporte
Publicado por Alexander (16 intervenciones) el 11/02/2005 18:33:00
Estoy haciendo un reporte en Crystal Report 8 que esta dado por dos fechas, y cuando lo mando a ejecutar no hace nada. Estoy utilizando Access 2000 con Visual Basic 6.0. A continuacion mando el Código Fuente para que observes si existe alguna irregularidad en el:
cr.Connect= "Provider=Microsoft.OLEDB.4.0; Data Source= \DBSistemaFletes.mdb"
cr.ReportFileName = "\General.rpt"
cr.SQLQuery = "select cedula, zona, fechaviaje, total from tfletec where fechaviaje between '" & Format(DTPicker1.Value, "MM/DD/YYYY") & "' and '" & Format(DTPicker2.Value, "MM/DD/YYYY") & "'"
cr.PrintReport 'Ejecuta el reporte
End Sub
cr.Connect= "Provider=Microsoft.OLEDB.4.0; Data Source= \DBSistemaFletes.mdb"
cr.ReportFileName = "\General.rpt"
cr.SQLQuery = "select cedula, zona, fechaviaje, total from tfletec where fechaviaje between '" & Format(DTPicker1.Value, "MM/DD/YYYY") & "' and '" & Format(DTPicker2.Value, "MM/DD/YYYY") & "'"
cr.PrintReport 'Ejecuta el reporte
End Sub
Valora esta pregunta


0