Results 1 to 6 of 6

Thread: How To Make DataReports DynaMic

  1. #1

    Thread Starter
    Junior Member Nandakishore's Avatar
    Join Date
    Aug 2002
    Location
    Vizag
    Posts
    28

    Unhappy How To Make DataReports DynaMic

    How To Make DataReports DynaMic like CrystalRepots

  2. #2
    Lively Member
    Join Date
    Jun 2001
    Location
    Australia
    Posts
    83
    Why not just use Crystal, it comes free with VB 5 and 6. You have to search the CD if you're using VB 6

    Free Code

  3. #3
    Junior Member
    Join Date
    Jun 2002
    Location
    Rochester.NY
    Posts
    20

    Data Reporter does dynamic just fine!

    I don't know what your specific issue is, but I use Datareporter for dynamic reports and have no issues. I'll admit being a little strange. I went BACK to datareporter after getting frustrated with Crystal, so I'm probably WAY in the minority. If you're having an issue, reply with specifics and we'll see if we can get your problems worked out.

  4. #4
    Lively Member BurnMan2003's Avatar
    Join Date
    Feb 2003
    Posts
    99
    I am going to try to use dataReports. I want the user to specify the criteria for their reports. They will have certain fields ...ie

    Report that will show employees of "Company A" that were in "Dept B" with salaries over "Salary Range C".

    They will click submit... to query the Access database... then the information will be passed to DataReports. That is what I need from it, so what do you suggest? Thanks for your help in advance!

  5. #5
    Junior Member
    Join Date
    Jul 2003
    Location
    Taiwan
    Posts
    29
    You need to add a new data environment (deTest) first, then add a new command object and name it 'cmdTest' by right click the connection object, after dialog box popup, you can build your SQL statement, Parameters, Group,, there, use ? for parameter in your criteria such as
    VB Code:
    1. Select * From Cust Where ID = ?
    once you done with that, you can test the result by right click anywhere, it will ask you to input the value for para then return the result, save the deTest(don't close it -- cause you need it when you try to do your report), add a report - rptTest, arrang the deTest and rptTest side by side so you can drag the fields from deTest to rptTest after you set the properties for rptTest

    VB Code:
    1. rptTest.datamember -- cmdTest
    2. rptTest.datasource -- deTest

    save the report.

    go the the form where you let user input value of the parameter, in the summit_click event write the code to pass the value to data environment (deTest) and display report.
    VB Code:
    1. 'Close the recordset first if it is open
    2. If deTest.rscmdTest.State = adStateOpen Then
    3.     deTest.rscmdTest.Close
    4. Endif
    5.  
    6. 'Pass the value to Data Environment
    7. deTest.cmdTest InputValue
    8.  
    9. 'Display report
    10. rptTest.Show

    good luck

  6. #6

    Thread Starter
    Junior Member Nandakishore's Avatar
    Join Date
    Aug 2002
    Location
    Vizag
    Posts
    28
    If getTemp.State = 1 Then getTemp.Close
    Set DR1.DataSource = Nothing
    getTemp.Open "select t1,t2,t3,t4,t5,t6 from reptemp", cn, 0, 1
    Set DR1.DataSource = getTemp
    DR1.Show
    Change is The only Constent
    Nanda kishore Tumula MCSE 2000,MCDBA 2000

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