Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 25th, 2007, 01:42 AM
Authorized User
 
Join Date: Aug 2007
Location: MANAMA, MANAMA, Bahrain.
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

Reply With Quote
  #2 (permalink)  
Old September 25th, 2007, 07:15 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
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
================================================== =========
Reply With Quote
  #3 (permalink)  
Old September 25th, 2007, 10:22 PM
Authorized User
 
Join Date: Aug 2007
Location: MANAMA, MANAMA, Bahrain.
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.

Reply With Quote
  #4 (permalink)  
Old September 26th, 2007, 07:12 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
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
================================================== =========
Reply With Quote
  #5 (permalink)  
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:54 AM.


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