CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2008
    Posts
    19

    VB6 With Crystal report 8.5 Error

    Hi

    I am using Vb6 with Ms-Access Database 2003. In creating crystal report 8.5.
    I got error message " Unable to Access First Record"-Sql error

    my code is below, Please help me

    Two tables connecting i am connecting using common code...
    Please give sample code,project connecting multiple tables in crystal report



    rs.Open "select * from DEL_DET,DEL_HEAD where DEL_DET.transno = DEL_HEAD.tran", CN, adOpenStatic, adLockReadOnly
    If rs.RecordCount > 0 Then
    Salesdemo.DiscardSavedData
    Salesdemo.Database.SetDataSource rs
    Screen.MousePointer = vbHourglass
    crviewerdaytoday.ReportSource = Salesdemo
    crviewerdaytoday.Zoom (100)
    crviewerdaytoday.ViewReport
    Screen.MousePointer = vbDefault

  2. #2
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: VB6 With Crystal report 8.5 Error

    Hve you tried using a Join statement?
    Always use [code][/code] tags when posting code.

Tags for this Thread

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

Featured