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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unable to open the database

Status
Not open for further replies.

kvinod2

Programmer
Oct 4, 2000
7
0
0
IN
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]
 
Hi vinod, are u sure that u r able to open the database for other purposes. Please check this. Or try to check other properties of the crystal report, i think u mentioned a database name while creating the report and saved data with the report. Try changing the report properties in ur code (i dont exactly remember the property name but try something like usesaveddata...(sorry yaar unable to recall). Can mail u if u can mail me at gantibabu@yahoo.com...vijay [sig][/sig]
 
thanks gantibabu for your response

actually what i did was in reports the path for database and from where i called the reports from vb where different

so i repaired the database in crystal reports

[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top