Hi,

Below codes work fine without db with password, but if i have an password on db it wont work,, what do i need to do

cr2.WindowState = crptNormal
cr2.ReportFileName = App.Path & "\Reports\customerid.rpt"
cr2.DataFiles(0) = d:/rajit.mdb

cr2.Action = 1

Report.Database.Tables(1).Location = App.Path & "\????????.mdb"
Report.Database.Tables(1).SetSessionInfo "", Chr$(10) & "????"
crystal report 9 - vb6 -MSAccess2003
put code in Form load

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.