0 Replies - 751 Views - Last Post: 14 June 2020 - 07:30 AM Rate Topic: -----

#1 Bataineh1976   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 29-December 19

send MDB password to crystal report 10

Posted 14 June 2020 - 07:30 AM

i have the following code in vb 6.0 to call a report (crystal report 10) which is connected to an access database

Private Sub DetailsStCount__Click()
Dim CrxApp As CRAXDDRT.Application
Dim CrxRep As CRAXDDRT.Report
Set CrxApp = New CRAXDDRT.Application
Set CrxRep = CrxApp.OpenReport(App.Path & "\StCountDetails.rpt")
Dim DBTable As CRAXDDRT.DatabaseTable
Set DBTable = CrxRep.Database.Tables(1)
DBTable.Location = App.Path & "\PlanningMDB.mdb"
CrxRep.DiscardSavedData
Form15.CRV1.ReportSource = CrxRep
Form15.CRV1.Refresh
Form15.CRV1.ViewReport
Form15.Show 1
End Sub
:code:

it work fine until i add a password to my database,
how can i update the code so it work again
thanks alot,

This post has been edited by modi123_1: 14 June 2020 - 12:48 PM
Reason for edit:: In the future please use the [code] tag button in the editor


Is This A Good Question/Topic? 0
  • +

Page 1 of 1