Results 1 to 4 of 4

Thread: problem on passing value

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2008
    Location
    Surigao City
    Posts
    23

    Thumbs up problem on passing value

    i have a text box and i want the value on my textbox is place on the my crystal, im new to crystal report.....


    Code:
    Private Sub cmdprint_Click()
    Dim oApp As CRAXDRT.Application
    Dim oReport As CRAXDRT.Report
    
    Set oApp = New CRAXDRT.Application
    Set oReport = oApp.OpenReport(App.Path & "\Reports\other_deduction.rpt", 1)
    oReport.Database.SetDataSource dataother.DataSource, 3, 1
    oReport.ParameterFields.GetItemByName(oReport.Sections(1).ReportObjects(2).Name).AddCurrentValue "'" & Text1.Text & "'"
    
    frmprintview.CRViewer91.ReportSource = oReport
    
    frmprintview.CRViewer91.ViewReport
    frmprintview.Show 1, frmother
    End Sub
    but it will prompt an error of invalid name...

    my crystal report version is 9.2

    Online on 8pm to 3am.......philippines time...





    making a maze on my head.....
    Last edited by knight_jose; Apr 25th, 2009 at 12:41 AM.

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