I wanted to know how to make a Connection String statement for Crystal Reports 8.5 using Visual Basic 6. I've tried this code:
CrystalReport1.ReportFileName = "C:\Report1.rpt"
CrystalReport1.Destination = crptToWindow
CrystalReport1.DiscardSavedData = True
CrystalReport1.Connect ="Data Source=Localhost;UID=sa;PWD=****;DSQ=Dat BdName;"
CrystalReport1.WindowState = crptMaximized
CrystalReport1.Action = 1
But I couldn't understand the 4th line. Can someone explain me about this. I am using MS Access 2013 as Database. Any help would be much appreciated.
With some modifications this should work: