T
tshad
Is there a way to update a DataSet Object?
I have a Dataset Object (DataSetObj.Tables(0) - one table) that I read in
from a .csv file.
I normally do the following to get my data from the .csv:
Dim DataSetObj As New DataSet
Dim DTDepartment As New DataTable
Dim dt As New DataTable
Dim da As New OleDb.OleDbDataAdapter("Select * from " & "temp.csv", conn)
da.Fill(DataSetObj)
I can get some rows by doing the following:
drCollection = DataSetObj.Tables(1).Select("F1 = 'FRANK'")
Is there a way to Update the tables inside the Dataset?
For example: I would like to change the all the values in Column 1 to 1084
if Column 4 = 'Retirement' and change all the values to 5300 if Column 4 =
'Medicare Employer' etc.
I would then read the file and output it to another .csv file.
Thanks,
Tom
I have a Dataset Object (DataSetObj.Tables(0) - one table) that I read in
from a .csv file.
I normally do the following to get my data from the .csv:
Dim DataSetObj As New DataSet
Dim DTDepartment As New DataTable
Dim dt As New DataTable
Dim da As New OleDb.OleDbDataAdapter("Select * from " & "temp.csv", conn)
da.Fill(DataSetObj)
I can get some rows by doing the following:
drCollection = DataSetObj.Tables(1).Select("F1 = 'FRANK'")
Is there a way to Update the tables inside the Dataset?
For example: I would like to change the all the values in Column 1 to 1084
if Column 4 = 'Retirement' and change all the values to 5300 if Column 4 =
'Medicare Employer' etc.
I would then read the file and output it to another .csv file.
Thanks,
Tom