|
-
Apr 12th, 2015, 06:16 AM
#1
Thread Starter
Junior Member
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
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|