Click here to Skip to main content
13,249,504 members (64,073 online)
Rate this:
 
Please Sign up or sign in to vote.
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 10-Nov-17 9:06am
kh medo306
Updated 12-Nov-17 15:33pm
v2
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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

crystal reports access database login - Google Search[^]
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Remove the line;
reports.CrystalReportsViewer.RefreshReport()


Kind Regards
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web01 | 2.8.171114.1 | Last Updated 12 Nov 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100