Results 1 to 12 of 12

Thread: [RESOLVED] recordset result on crystal

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member wizkid's Avatar
    Join Date
    Dec 2005
    Location
    uk
    Posts
    405

    Resolved [RESOLVED] recordset result on crystal

    Hi RobDog888,
    please help me!!!
    your code is working fine.
    but my problem is..
    i am not getting the select * from table query values on crystal.
    i was already created the report newreport.rpt.it is a blank report.
    and i want the query result when i press command9 button.
    nearly from 3 weeks i working on this report
    please give me some solution

    VB Code:
    1. Private Sub Command9_Click()
    2.     Dim oreport As CRAXDRT.report
    3.     Dim oapp As CRAXDRT.Application
    4.     Dim oRs As Recordset
    5.     Dim sSQL As String
    6.  
    7.     Set oRs = New Recordset
    8.     Set oRs = db_conn.Execute("SELECT * FROM table")
    9.     Set oapp = New CRAXDRT.Application
    10.     Set oreport = oapp.OpenReport(App.Path & "\newreport.rpt", 1)
    11.  
    12.     oreport.Database.SetDataSource oRs, 3, 1
    13.  
    14.     CRViewer91.ReportSource = oreport
    15.     CRViewer91.ViewReport
    16. End sub

    thank u
    Last edited by RobDog888; Jan 30th, 2006 at 02:06 PM. Reason: Added [vbcode] tags

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