CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Crystal Report Calls in VB gives error

    I am calling a report designed in Crystal Report in a VB Project.
    I want to replace the current selection formula by another simple formula
    (the same field is being in use)
    But it gives the following error
    example source

    Private Sub Command1_Click()
    Dim strSQL As String
    strSQL = "{TableName.SerialNo} > " & Val(Text1.Text)
    CrystalReport1.ReplaceSelectionFormula strSQL
    CrystalReport1.Action = 1
    End Sub


    Run Time error '20536'
    Unable to connect:incorrect log on parameters


    HOW TO GO AHEAD?


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Crystal Report Calls in VB gives error

    the first thing CR tries to do is log on to the database using the logon parameters you specified.
    Obivously something is wrong with those parameters. Make sure you login parameters (username, passwort, database...) are set correctly.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured