Results 1 to 4 of 4

Thread: [Vb6 ask] connection code on CR10 to MS SQL Server

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    12

    Post [Vb6 ask] connection code on CR10 to MS SQL Server

    Dear Colleagues,

    Please do me ur favor to completed this code :

    Code:
    Private Sub Command1_Click()
         Dim rep as CRADXDRT.Report
         Dim Cry As New CRADXDRT.Application
         Dim SQL As String
         
         Set rep = Cry.OpenReport(App.Path + "\Report\rptCrf.rpt")
         
         SQL = .................................. (Code to connect with SQL Server)
         
        rep.SQLQueryString = SQL
        rep.DischardSavedData
        CRV.ReportSource = rep
        CRV.RefreshEX True
        CRV.ViewReport
        CRV.Zoom 100
    End sub
    I'm using StoredProcedure with name "ShowRequisitionCurent"
    with Primary key @CurMS


    I need VB Code to get connection between VB6 to CR10 using MS SQL database.

    Obviously, I Always get a problem with Log on to Server.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [Vb6 ask] connection code on CR10 to MS SQL Server

    Are you just looking for a connection string to SQL Server?

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    12

    Re: [Vb6 ask] connection code on CR10 to MS SQL Server

    Quote Originally Posted by Hack
    Are you just looking for a connection string to SQL Server?
    Yes.

  4. #4

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    12

    Re: [Vb6 ask] connection code on CR10 to MS SQL Server

    Hey Guys,

    I'm still waiting your help .... Please Help Me .... !!!!!!

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