Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27348

VS 2010 [RESOLVED] Fill an in-memory datatable with data filtered from another in-memory datatable

$
0
0
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.

Viewing all articles
Browse latest Browse all 27348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>