Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: bind password protectec access to cr10 Post Reply Post New Topic
Author Message
muddasirmunir
Newbie
Newbie


Joined: 21 Oct 2007
Location: Pakistan
Online Status: Offline
Posts: 13
Quote muddasirmunir Replybullet Topic: bind password protectec access to cr10
    Posted: 06 Jan 2009 at 8:13am
I am using vb6 and crystal report 10 for report generation , also using ms access 2000 as a backend database.

i had put password to the database and when i run my report i am getting message "Invalid password" as i check i had provide the true password and if i remove the password the report run fine .

I also want that the report use data from application path and not the fix path.

I am using the following code


Private Sub Form_Load()
Report1.Database.Tables(1).SetSessionInfo "", Chr(10) & "abc123"
Report1.Database.Tables(1).Location = App.Path & "\My Project.mdb"
Screen.MousePointer = vbHourglass
Report1.SQLQueryString = "select * from Sales"
CRViewer1.ReportSource = Report1
CRViewer1.ViewReport
Screen.MousePointer = vbDefault
End sub


what wrong in this code , when i remove the password report works fine if i put the password it says invalid password.

any help ?
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.