I AM EXECUTING VB6 PROGRAM WITH CRYSTAL REPORTS 4.1 ON SYSTEM
WHICH HAS VB6 INSTALLED ONLY
error is: unable to open the database
program is :
Private Sub Form_Load()
Data2.DatabaseName = App.Path & "\bank.mdb"
Data2.RecordSource = "select * from tbank "
Data1.DatabaseName = App.Path & "\bank.mdb"
Data1.RecordSource = tbank
'CrystalReport1.DataSource = Data1
CrystalReport1.ReportFileName = App.Path & "\test1.rpt"
' ON THE BELOW LINE ERROR IS COMING
CrystalReport1.Action = 1
End Sub
PROPERTIES FOR CRYSTAL REPORTS ARE :
ReportSource : 0-crptReport
dataSource : data1
[sig][/sig]
WHICH HAS VB6 INSTALLED ONLY
error is: unable to open the database
program is :
Private Sub Form_Load()
Data2.DatabaseName = App.Path & "\bank.mdb"
Data2.RecordSource = "select * from tbank "
Data1.DatabaseName = App.Path & "\bank.mdb"
Data1.RecordSource = tbank
'CrystalReport1.DataSource = Data1
CrystalReport1.ReportFileName = App.Path & "\test1.rpt"
' ON THE BELOW LINE ERROR IS COMING
CrystalReport1.Action = 1
End Sub
PROPERTIES FOR CRYSTAL REPORTS ARE :
ReportSource : 0-crptReport
dataSource : data1
[sig][/sig]