Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 25th, 2007, 01:42 AM
Authorized User
 
Join Date: Aug 2007
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to zrtv
Default crystal report9 with password protected MSACCESS

Hi All,
Can any one tell me what is the code for calling password protected msaccess from crystal report in VB6.

currently I am trying with the following code but it shows error
"Could not find installable ISAM"

My code is:
Private Sub Form_Load()
   Dim crystal As CRAXDRT.Application
   Dim report As CRAXDRT.report
   Dim crxTable As CRAXDRT.DatabaseTable

   Set crystal = New CRAXDRT.Application

   Set report = crystal.OpenReport(App.Path "\data\TESTPWD.rpt")
   CRViewer.ReportSource = report
   For Each crxTable In report.Database.Tables
            crxTable.SetSessionInfo "", Chr(10) & Password
   Next crxTable
  CRViewer.ViewReport

End Sub

 
Old September 25th, 2007, 07:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

are you sure that the databases inside the report has the correct path???

maybe the path is virtual from wherever you are running it and it cannot found it...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old September 25th, 2007, 10:22 PM
Authorized User
 
Join Date: Aug 2007
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to zrtv
Default

Hi Thanks for your response,
Yes Unfortunately path is correct.

 
Old September 26th, 2007, 07:12 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

then I don't have a clue.. sorry... someone else???

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old April 22nd, 2009, 03:23 PM
gsz gsz is offline
Registered User
 
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Could not find installable ISAM

Reinstall the access +mdac +jet4.0 no exist xbs110.dll and use ADO not use DAO

Sorry I not speak in english

Quote:
Originally Posted by zrtv View Post
Hi All,
Can any one tell me what is the code for calling password protected msaccess from crystal report in VB6.

currently I am trying with the following code but it shows error
"Could not find installable ISAM"

My code is:
Private Sub Form_Load()
Dim crystal As CRAXDRT.Application
Dim report As CRAXDRT.report
Dim crxTable As CRAXDRT.DatabaseTable

Set crystal = New CRAXDRT.Application

Set report = crystal.OpenReport(App.Path "\data\TESTPWD.rpt")
CRViewer.ReportSource = report
For Each crxTable In report.Database.Tables
crxTable.SetSessionInfo "", Chr(10) & Password
Next crxTable
CRViewer.ViewReport

End Sub





Similar Threads
Thread Thread Starter Forum Replies Last Post
Password Protected IE mrzoab C# 2 September 7th, 2007 07:47 AM
Password protected files southernsun VB How-To 7 August 23rd, 2007 04:53 AM
Crystal Report 9 password protected mdb ACCESS sajid_rauf Pro VB Databases 2 July 27th, 2007 02:29 AM
Crystal report9 and VB6 vaneza VB How-To 1 June 29th, 2005 11:34 PM
Password Protected Forums spooky012017 Dreamweaver (all versions) 4 July 24th, 2004 02:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.