RE:Codigo para generar un reporte entre dos fecha
Si te refieres al crystal este el codigo:
dim fecha1 as string
dim fecha2 as string
fecha1= Text1
fecha2= Text2
CrystalReport1.ReportFileName = "C:\Reportes\Mireporte.rpt"
CrystalReport1.SelectionFormula = "{Fechas.Fecha} in DateTime ('" + fecha1 + "') to DateTime ('" + fecha2 + "') "
CrystalReport1.Destination = crptToWindow
CrystalReport1.Action = 1
'*******************************************************************************************
{Fechas.Fecha}= la tabla se llama "Fechas" y el campo a filtrar es "Fecha"
independientemente de como se llame el reporte.
Ojal te sirva. bye