just a small idea might help.
try to create a table in access with the same fields as your dataset.
and after that you can make a loop to copy the records into access table like this
foreach (DataRow _row in DataSet.Tables[0].Rows)
{
string strSql="INSERT INTO table
(column-1, column-2, ... column-n)
VALUES
(_row["firscolumn"], _row["secondcolumn"], ... value-n);
// you must add each row to table and run the strSql statement.
//here you do the insert
}
connection.close();
do not forget to open the connection before your enter the loop and do not open it every time you need to insert!.
hope this helps
Muhanad YOUNIS
MCSD.NET
My Blog ||
My Photos [Don't forget to click on Mark as answer on the post that helped you.]