Hi im trying to create a report from my program. Ive successfully got the data i want from my database and it displays perfectly using a datagrid in my application. However the problem im having is i have created a new report and a report viewer etc. Ive used the DataBase expert tool and pointed it to my table (CLINIC) and if finds the various fields which i have added to the report. However when i load the report im my application all my headings, titles etc are there but the values for the fields dont appear ??
Ill include my code for my program below to see if it gives you some more of an idea about my application.
VB Code:
Public Class Form1 Dim strDate As Date Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click strDate = Me.TxtDate.Text MessageBox.Show(strDate) CLINICTableAdapter.Fill(ShiredataDataSet1.CLINIC, strDate) End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Application.Exit() End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click CrViewer.Visible = True CrViewer.ReportSource = crClinic1 End Sub End Class




Reply With Quote