Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
VB
Dim rpt As New stage1
    rpt.Load("stage1.rpt")
    Dim dx As CrystalDecisions.CrystalReports.Engine.Table
    Dim cx As CrystalDecisions.Shared.TableLogOnInfo
    For Each dx In rpt.Database.Tables
        cx = dx.LogOnInfo
        cx.ConnectionInfo.DatabaseName = Application.StartupPath & "\studentdb.accdb"
        cx.ConnectionInfo.UserID = "Admin"
        cx.ConnectionInfo.Password = "19922991"
        dx.ApplyLogOnInfo(cx)
    Next
    reports.CrystalReportViewer1.ReportSource = rpt
    reports.CrystalReportViewer1.RefreshReport()
    reports.ShowDialog()


What I have tried:

how to solved error Access database login crystal report vb.net
Posted
Updated 12-Nov-17 14:33pm
v2

This has been asked, literally, a couple million times, all over the web.

crystal reports access database login - Google Search[^]
 
Share this answer
 
Remove the line;
VB
reports.CrystalReportsViewer.RefreshReport()


Kind Regards
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900