Re: I don't know how... by William
William
Wed Jan 07 13:16:01 CST 2004
You'll need to add a DataColumn to a DataTable not the dataset. So if you
have a DataTable named Table1 inisde DataSet1, you'd do something like this.
DataSet1.Tables["Table1"].Columns.Add["YourColumName", typeofdatainColumn]
At that point, you can referenct it with
DataSet1.Tables["Table1].Columns["YourColumName"];
Assuming you have your update logic written, just call
DataAdapter.Update(DataSet1, Table1);//repeat for each table....
HTH,
Bill
".:: MaStErDoN ::." <andresiraola@SPAMhotmail.com> wrote in message
news:%23iopIJU1DHA.3496@TK2MSFTNGP11.phx.gbl...
> I want to add a column to a dataset and then update my Access XP database
> with the dataset changes.
> Anyone knowns how to do it??
>
> Thanks!
>
> Andres
>
>
>