Results 1 to 4 of 4

Thread: [RESOLVED] Cannot see data on report

  1. #1

    Thread Starter
    Hyperactive Member tommygrayson's Avatar
    Join Date
    Aug 2005
    Location
    In my Nissan Silvia
    Posts
    433

    Resolved [RESOLVED] Cannot see data on report



    Hi guys!!!!

    I am here once again because I can't solve the problem for 3 days now.

    I can't see the data on the report. I am currently using Crystal Reports 10

    and I am using VB6 with SQL Server 2000. There's something wrong with my

    code because it works in Crystal reports. Here is the code:

    VB Code:
    1. Private Sub Form_Load()
    2. Dim BookingSheet As New CRAXDRT.Application
    3. Dim TransactionReport As New CRAXDRT.Report
    4.  
    5. Set TransactionReport = BookingSheet.OpenReport("\\mnlbs001\Cargo Suite\Applications\BookingSheet.rpt", 1)
    6.  
    7. CrystalActiveXReportViewer1.ReportSource = TransactionReport
    8.  
    9.  
    10. CrystalActiveXReportViewer1.ViewReport
    11. TransactionReport.RecordSelectionFormula = ""
    12. MsgBox "{Transaction_Table.Transaction_No} = '" & Trim(frmTransactionEntries.txtTransactionNo.Text) & "'"
    13. TransactionReport.RecordSelectionFormula = "{Transaction_Table.Transaction_No} = '" & Trim(frmTransactionEntries.txtTransactionNo.Text) & "'"
    14. Screen.MousePointer = vbHourglass
    15. Screen.MousePointer = vbDefault
    16.  
    17. End Sub
    18.  
    19. Private Sub Form_Resize()
    20. CrystalActiveXReportViewer1.Top = 0
    21. CrystalActiveXReportViewer1.Left = 0
    22. CrystalActiveXReportViewer1.Height = ScaleHeight
    23. CrystalActiveXReportViewer1.Width = ScaleWidth
    24. End Sub

    Can you guys please help me out.
    Rate Me! Rate Me! Rate Me!

    Time to fly.

    Copyright GraysonSoft Inc. 2007

  2. #2

    Thread Starter
    Hyperactive Member tommygrayson's Avatar
    Join Date
    Aug 2005
    Location
    In my Nissan Silvia
    Posts
    433

    Re: Cannot see data on report

    Anyone?
    Rate Me! Rate Me! Rate Me!

    Time to fly.

    Copyright GraysonSoft Inc. 2007

  3. #3

    Thread Starter
    Hyperactive Member tommygrayson's Avatar
    Join Date
    Aug 2005
    Location
    In my Nissan Silvia
    Posts
    433

    Exclamation Re: Cannot see data on report

    Ok now I am having progress. I just want to ask how can I assign two different passwords on two different users that will connect to one table. For example:

    VB Code:
    1. TransactionReport.Database.Tables(1).ConnectionProperties("User") = "sa"
    2. TransactionReport.Database.Tables(1).ConnectionProperties("Password") = "cons0l"
    3. TransactionReport.Database.Tables(2).ConnectionProperties("Password") = "cons0l"
    4. TransactionReport.Database.Tables(3).ConnectionProperties("Password") = "cons0l"

    I wanted to assign the password "cons0l" to user sa and a blank password to user john. How can I do that?
    Rate Me! Rate Me! Rate Me!

    Time to fly.

    Copyright GraysonSoft Inc. 2007

  4. #4

    Thread Starter
    Hyperactive Member tommygrayson's Avatar
    Join Date
    Aug 2005
    Location
    In my Nissan Silvia
    Posts
    433

    Re: Cannot see data on report

    Never mind. I have already solved it myself.

    Rate Me! Rate Me! Rate Me!

    Time to fly.

    Copyright GraysonSoft Inc. 2007

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