Below is the code thats giving me an error Dim adapter As New DataSetTableAdapters.SentEmailTableAdapter Dim table As New DataSet.SentEmailDataTable adapter.GetDataByDate(table, batchflag, startdate, enddate) Value of type 'DataSet.SentEmailDataTable' cannot be converted to 'String'. Too many arguments to 'Public Overridable Overloads Function GetDataByDate(BatchFlag As String, StartDate As Date?, EndDate As Date?) As DataSet.SentEmailDataTable'. But this code works with no error. As you can see I pass it a table and one parameter. Dim adapter As New DataSetTableAdapters.EmployeesTableAdapter Dim table As New DataSet.EmployeesDataTable adapter.GetDataByRegion(table, state)
↧
TableAdapter
↧