Results 1 to 2 of 2

Thread: Unable to Access first Record-Error message

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2007
    Posts
    26

    Unable to Access first Record-Error message

    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...



    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
    Else
    MsgBox " No data found"
    End If

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Unable to Access first Record-Error message

    Please don't post the same question more than once. I have asked the mods to delete your other threads on this same topic.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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