Dim row As DataRow = retVal.NewRow() ' Create new row as the index in the for increases

'Put the yearmonth, start date ,and end date in a dataset
Dim tmpds As Dataset = dbManager.ExecuteDataSet(cmd) ' This will put it in a dataset
row.ItemArray = tmpds.Tables(0).Rows(0).ItemArray
retVal.Rows.Add(row)
Next