Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 186
  • Last Modified:

Password Protection in Access 2000 and Crytsal Report

I am using VB6 and Access 2000 and Crystal Report 8.5. I put a password on the on my database.  The problem is whenever I launch the crystal report then I would have an "incorrect session parameters" error.  How do deal with this?
0
rcbarot
Asked:
rcbarot
1 Solution
 
Richie_SimonettiIT OperationsCommented:
Just a clue, hasn't Crystal parameter lines to add password of database?
0
 
rcbarotAuthor Commented:
How to do it then? I would really appreciate it
0
 
ChessCommented:
   sreport_name = "rpt_swap_valuation.rpt"
   
    sreport_name = App.Path & "\REPORTS\" & sreport_name
   
    Set crreport = crapplication.OpenReport(sreport_name)
    For i = 1 To crreport.Database.Tables.Count
        crreport.Database.Tables(1).SetLogOnInfo gServerName, gDbName, gLogin, gPassword
        crreport.Database.Tables(1).Location = gDbName & ".dbo." & "Get_Swap_Appraisal"
    Next i
    crreport.ParameterFields(1).AddCurrentValue (sreport_fund_num)
    crreport.ParameterFields(2).AddCurrentValue (CDate(sreport_processingdate))
    crreport.ParameterFields(3).AddCurrentValue (gFundgroupnumber)
    frmReport.rptViewer.ReportSource = crreport

    frmReport.rptViewer.ViewReport
    frmReport.Show
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now