每一次我使用Merge()我有以下幾點:'不能隱式地將類型'void'轉換爲'System.Data.DataTable'。'不能隱式地使用合併將類型'void'轉換爲'System.Data.DataTable'
您能否讓我知道我的代碼中出了什麼問題?
DataRow[] befdvd = toverify.Select("Date < '# " + dvddate + "#'");
DataRow[] aftdvd = toverify.Select("Date => '# " + dvddate + "#'");
foreach (DataRow dr in befdvd)
dr[gl.EX_PRICE] = (double)dr[gl.EX_PRICE] * dvdfact;
DataTable beff = befdvd.CopyToDataTable();
DataTable Aftt = aftdvd.CopyToDataTable();
toverify = beff.Merge(Aftt);
感謝