Fill an in-memory datatable with data filtered from another in-memory datatable
Hi,
I have been running in circles since three days with no avail. And as usual, when I give up, I come here.
I have a datatable I created in code (it's in memory not in the Access database). This datatable is originally a query result from joining three Access tables. The datatable works fine but now I need to filter it and use the result to create a new datatable (also created in code).
HOW? :(
What I tried so far:
Datareader, some thing like this:
DR.CommandText = "SELECT * FROM IN_MEMOERY_DT1 WHERE ID=" & vID
IN_MEMOERY_DT2.Load(DR.ExecuteReader)
But the datareader does not seem to want to read from in-memory datatables.
I also tried other scenarios but all failed and I'm sure it's due to my being a beginner!
Any help would be very appreciated.
Hi,
I have been running in circles since three days with no avail. And as usual, when I give up, I come here.
I have a datatable I created in code (it's in memory not in the Access database). This datatable is originally a query result from joining three Access tables. The datatable works fine but now I need to filter it and use the result to create a new datatable (also created in code).
HOW? :(
What I tried so far:
Datareader, some thing like this:
DR.CommandText = "SELECT * FROM IN_MEMOERY_DT1 WHERE ID=" & vID
IN_MEMOERY_DT2.Load(DR.ExecuteReader)
But the datareader does not seem to want to read from in-memory datatables.
I also tried other scenarios but all failed and I'm sure it's due to my being a beginner!
Any help would be very appreciated.