SteveInBeloit
Well-known member
- Joined
- May 22, 2006
- Messages
- 132
- Programming Experience
- 10+
Hi,
I would like some suggestions on how to design this project.
I have loaded two data tables from Excel spreadsheets into one DataSet. DataTable1 contains debit card numbers. DataTable2 contains the transactions, meaning the debit card numbers along with amount and date.
I need to pull out all of the transactions from DT2 where the debit card number is in DT1. Then I need to display that information, and allow for a report, both detail (all transactions) and summary (amounts summed by debit card number).
What should I do?
My thoughts: Somehow compare the two DTs and create third DT on the fly that has all the transactions from DT2 where the number was in DT1. Then base a dataGridView on DT3 for the user to view. Then create a report based on DT3.
Sounds pretty straight forward. Anything I should do differently?
Or, how about compare the two, and delete any row out of DT2 where the debit card number is not in DT1, then sort them by debit card number and date, and then just use what is left of DT2.
I am mainly asking these questions because I have never compared dataTables or deleted out of them, and don't want to design something that is not doable. Also, I have based reports off of tables in the datasource tab, but not off of DataTables.
Thanks,
Steve
I would like some suggestions on how to design this project.
I have loaded two data tables from Excel spreadsheets into one DataSet. DataTable1 contains debit card numbers. DataTable2 contains the transactions, meaning the debit card numbers along with amount and date.
I need to pull out all of the transactions from DT2 where the debit card number is in DT1. Then I need to display that information, and allow for a report, both detail (all transactions) and summary (amounts summed by debit card number).
What should I do?
My thoughts: Somehow compare the two DTs and create third DT on the fly that has all the transactions from DT2 where the number was in DT1. Then base a dataGridView on DT3 for the user to view. Then create a report based on DT3.
Sounds pretty straight forward. Anything I should do differently?
Or, how about compare the two, and delete any row out of DT2 where the debit card number is not in DT1, then sort them by debit card number and date, and then just use what is left of DT2.
I am mainly asking these questions because I have never compared dataTables or deleted out of them, and don't want to design something that is not doable. Also, I have based reports off of tables in the datasource tab, but not off of DataTables.
Thanks,
Steve
Last edited: