I've developed an application that uses VB 6, Crystal Reports 8, and SQL Server 7. In my application when I hit submit, the form sends the beginning and ending dates to my crystal report like so:
Dim selection As String
selection = "{Info.Date} >= #" & _
DTPicker1.Value & "# AND {Info.Date} <= #" & DTPicker2.Value & "#"
CrystalReport1.SelectionFormula = selection
CrystalReport1.ReportFileName = App.Path & "\Report.rpt"
CrystalReport1.Action = 1
The selection statement is getting sent fine cause the report only views the records with the appropriate dates. However, also in my application I add entries into the Info table. If I then try to view the report the entries I've added do not show up. It's as if the only records I can sort through are the ones that were in the database when I saved the crystal report and then compiled the VB project. Please help if you can. Thanks.
Dim selection As String
selection = "{Info.Date} >= #" & _
DTPicker1.Value & "# AND {Info.Date} <= #" & DTPicker2.Value & "#"
CrystalReport1.SelectionFormula = selection
CrystalReport1.ReportFileName = App.Path & "\Report.rpt"
CrystalReport1.Action = 1
The selection statement is getting sent fine cause the report only views the records with the appropriate dates. However, also in my application I add entries into the Info table. If I then try to view the report the entries I've added do not show up. It's as if the only records I can sort through are the ones that were in the database when I saved the crystal report and then compiled the VB project. Please help if you can. Thanks.