I will try to keep this simple hoping I explain myself correctly
I have a database which among others has two tables I am trying to use correctly.
Transactions
TransactionID
TransactionDate
DescriptionID (foreign key - TransactionDescriptions)
TransactionAmount
TransactionDescriptions
DescriptionID
Description
In my dataset I originally had these set as they are with all the designer generated queries, select, insert etc.
Now I found that when diplaying the transactions in my listview I need to see the actual description not the description ID.
So I amended the .Fill query to include an inner join between the two tables so that in the dataset designer Transacations now looks like this:
Transactions
TransactionID
TransactionDate
DescriptionID (foreign key - TransactionDescriptions)
TransactionAmount
Description
Now the .Fill will still do what I need to allow me to continue as I have up until now.
But what has happened is that code in ohter parts of my app that calls
Me.TransactionsTableAdapter.Update now errors saying that .Update does not exist.
I realise this is due to the joining of two tables and that I need to create the update, well the insert command myself.
However.......I cannot see where it is that I do this!
Any advice gratefully received
Thanks
I have a database which among others has two tables I am trying to use correctly.
Transactions
TransactionID
TransactionDate
DescriptionID (foreign key - TransactionDescriptions)
TransactionAmount
TransactionDescriptions
DescriptionID
Description
In my dataset I originally had these set as they are with all the designer generated queries, select, insert etc.
Now I found that when diplaying the transactions in my listview I need to see the actual description not the description ID.
So I amended the .Fill query to include an inner join between the two tables so that in the dataset designer Transacations now looks like this:
Transactions
TransactionID
TransactionDate
DescriptionID (foreign key - TransactionDescriptions)
TransactionAmount
Description
Now the .Fill will still do what I need to allow me to continue as I have up until now.
But what has happened is that code in ohter parts of my app that calls
Me.TransactionsTableAdapter.Update now errors saying that .Update does not exist.
I realise this is due to the joining of two tables and that I need to create the update, well the insert command myself.
However.......I cannot see where it is that I do this!
Any advice gratefully received
Thanks
Last edited: