-
April 12th, 2015, 06:26 AM
#1
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
-
April 12th, 2015, 09:25 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|