I'm using visual studio 2008. I have a datagridview, and I am trying to display data from two tables in this datagridview, one being customer name..which is on one table, the other data is customer financial information, which is in another table..(we'll call these financial and demographics), I thought I could just create a relationship between the two common columns (Customer Number) within the dataset designer, and then in the fillby() statement for the Financial table, add in the two columns (demographics.fname, demographics.lname) that I need, so the select statement would say
SELECT Financial.ID, Financial.Payments, Financial.CustomerNo, demographics.CustomerNo, demographics.fname, demographics.lname FROM Financial, demographics WHERE Financial.CustomerNo = demographics.CustomerNo
I tried that and got no errors so i thought it worked..until i tried to build and it gives me these errors now "Insert' is not a member of FinancialTableAdapter wherever my insert statements are located, which I have not touched. I realized this is because in Advanced options when configuring queries in the dataset designer, all of the three checkboxes were unchecked, so i thought hm..check them again! so I did, and it unchecked themselves again, I then reverted my data back to what it was before this incident...restarted, but no luck, same stuff happens.
So I guess my two questions are:
1. How can I get my insert, update, and delete statements back to be a "member of FinancialTableAdapter"
and
2. How can I successfully extract the data I need from these two tables using relationships in the dataset designer and have them display on my datagridview?
Thanks in advance
SELECT Financial.ID, Financial.Payments, Financial.CustomerNo, demographics.CustomerNo, demographics.fname, demographics.lname FROM Financial, demographics WHERE Financial.CustomerNo = demographics.CustomerNo
I tried that and got no errors so i thought it worked..until i tried to build and it gives me these errors now "Insert' is not a member of FinancialTableAdapter wherever my insert statements are located, which I have not touched. I realized this is because in Advanced options when configuring queries in the dataset designer, all of the three checkboxes were unchecked, so i thought hm..check them again! so I did, and it unchecked themselves again, I then reverted my data back to what it was before this incident...restarted, but no luck, same stuff happens.
So I guess my two questions are:
1. How can I get my insert, update, and delete statements back to be a "member of FinancialTableAdapter"
and
2. How can I successfully extract the data I need from these two tables using relationships in the dataset designer and have them display on my datagridview?
Thanks in advance