Hey guys!
I have managed to fix a previous problem but now I have a new one!The "Details" fields keeps repeating itself for example its showing it 4 times instead of one!this is my code
Dim crptdoc As New CrystalReport1
Dim mystr As String
Dim myDS As New DataSet1
crptdoc.Load("C:\Users\ACP\Documents\Visual Studio 2005\Projects\Sistema ManoObras\SistemaManoObras\SistemaManoObras")
crptdoc.SetDataSource(myDS.Tables("Payroll"))
mystr = "{Employees.EmployeeID} = " & Val(Form1.TxtEmpID.Text) & "and {Payroll.PayrollID} = " & Val(Form1.TxtPayrollID.Text) & ""
CrystalReportViewer1.SelectionFormula = mystr
CrystalReportViewer1.ReportSource = crptdoc
What am I doing wrong?