Solved

ADO Error Message from crystal reports

Posted on 2004-09-21
5
3,560 Views
Last Modified: 2012-06-27
I am trying to view a report from visual basic and i keep getting the following error.

Logon failed.
Details: ADO Error Code: 0x80004005
Source: OraOLEDB
Description: ORA-01005: Null password given; logon denied
Native Error: 1005

Im connecting to an oracle 9i database using the OraOLEDB provider.
I get this error from one main report and one sub report. But my other reports work fine using the same driver/provider.
0
Comment
Question by:oagunbiade
  • 3
  • 2
5 Comments
 
LVL 42

Expert Comment

by:frodoman
ID: 12112188
My first guess is that the problem reports use more than one table and you're only sending login info to the first table (meaning that the other reports that work are probably only using a single table).  You need to send login info for each table being used.

frodoman
0
 

Author Comment

by:oagunbiade
ID: 12112196
How do i do that?
0
 
LVL 42

Expert Comment

by:frodoman
ID: 12112237
What does your code look like now?  Probably you need something like:

crxSubreport.Database.Tables(2).SetLogOnInfo "Server", '"database", "uid", "pw"

Or you can write a For..Each Table loop as well.

frodoman
0
 

Author Comment

by:oagunbiade
ID: 12112460
Just tried that but im not getting a setlogoninfo method from the list of available methods. I am desinging the form from visual basic using the crystal viewer. see code below

Set RsGeoBreach = New Recordset
   
    With RsGeoBreach
        .Open "SELECT * FROM Geo_Breach", ConHistory, adOpenStatic
    End With
   
   
    Set rscompany = New Recordset
   
    With rscompany
        .Open "SELECT * FROM details", ConHistory, adOpenStatic
    End With
   
    Report.DiscardSavedData
   
    Report.Database.SetDataSource rscompany, 3, 2
    Report.Database.SetDataSource RsGeoBreach, 3, 1
   
    Screen.MousePointer = vbHourglass
    CRViewer1.ReportSource = Report
    CRViewer1.ViewReport
    Screen.MousePointer = vbDefault
0
 
LVL 42

Accepted Solution

by:
frodoman earned 250 total points
ID: 12112606
Didn't realize you were passing a dataset to the report.  I believe it's this you want instead:
   report.Database.Tables(0).SetDataSource(source)
   report.Database.Tables(1).SetDataSource(source)
   etc.

frodoman
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question