VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Crystal Report Viewer for MS Access Database (Password Protected)

by sreeattan (1 Submission)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

Crystal Report Viewer.. How to Display a report in Crystal Report Viewer (MS Access Password Protected Database)..

Rate Crystal Report Viewer for MS Access Database (Password Protected)

Private Sub Report(ByVal rptname As String) 

Dim crxApplication As New CRAXDRT.Application

Dim Report As CRAXDRT.Report 

Dim a As Integer

Set Report = crxApplication.OpenReport(App.Path & rptname, 1)

For a = 1 To Report.Database.Tables.Count

 Report.Database.Tables(a).Location = App.Path & "\database\XXX.mdb"

Report.Database.Tables(a).SetLogOnInfo App.Path & "\database\XXX.mdb", "XXX.mdb", "admin", "pwdhere"

Next

Set frmReport.report = Report

frmReport.Show vbModal, Me 

End Sub

Download this snippet    Add to My Saved Code

Crystal Report Viewer for MS Access Database (Password Protected) Comments

No comments have been posted about Crystal Report Viewer for MS Access Database (Password Protected). Why not be the first to post a comment about Crystal Report Viewer for MS Access Database (Password Protected).

Post your comment

Subject:
Message:
0/1000 characters