str1 = "select distinct [Sched_Code] as [No.], [Course], [Year], [Section], [Batch]," & _
" [Subject],[subject_desc],[units], [Time], [Day], [Room], [Instructor], [Schoolyr] as [S.Y.], [Semester] as [Sem] from tblSchedule, tblcurriculum where tblschedule.subject=tblcurriculum.subjects"
Dim dt As New DataTable
dt = ConnectDatabase(str1)
rpt.SetDataSource(dt)
CrystalReportViewer1.ReportSource = rpt
help, i cant see content of my data generated from the tblschedule and tblcurriculum.
i dont encounter any error.
decoder.mira
0
Newbie Poster
Recommended Answers
Jump to PostI am not so sure that query is returning anything.
You have to give a table.column on the select when two tables are being passed in on the FROM clause.
Try adding an alias and prefixing your columns.
For Example:
str1 = "SELECT DISTINCT ts.[Sched_Code] As [No], …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.