Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Crystal Reports with VB 6

Status
Not open for further replies.

JSUAlumni

Programmer
Mar 29, 2001
21
US
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 & &quot;# AND {Info.Date} <= #&quot; & DTPicker2.Value & &quot;#&quot;
CrystalReport1.SelectionFormula = selection
CrystalReport1.ReportFileName = App.Path & &quot;\Report.rpt&quot;
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.
 
Hey man,

Check to make sure you didn't have Save Data With Report checked off (its under the File menu).

Jack
 
Yes, I tried that option but it still doesn't work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top