G
GatorBait
Hi All,
I have a dataset that has more than one table in it so I am unable to
use the CommandBuilder to automatically generate an update command so I
have to do it by hand. I am a little confused on how to write such a
command and was hoping someone could help me out. Basically, I have 2
tables: 'Customers' and 'Letters' that are joined by a 'Customer_ID'
field. There is a field 'Printed' inside the Letters table.
In my application, the user can generate letters for customers, and I
keep the 'batch' of letters in a dataset. When the user prints the
letter for a particular customer, I set the Printed field to 1. There
can be multiple records that get printed so I'm confused on how I write
the update command for the data adapter.
UPDATE Letters SET Printed = 1 WHERE ??????
Can someone help me? Thanks a lot in advance!
I have a dataset that has more than one table in it so I am unable to
use the CommandBuilder to automatically generate an update command so I
have to do it by hand. I am a little confused on how to write such a
command and was hoping someone could help me out. Basically, I have 2
tables: 'Customers' and 'Letters' that are joined by a 'Customer_ID'
field. There is a field 'Printed' inside the Letters table.
In my application, the user can generate letters for customers, and I
keep the 'batch' of letters in a dataset. When the user prints the
letter for a particular customer, I set the Printed field to 1. There
can be multiple records that get printed so I'm confused on how I write
the update command for the data adapter.
UPDATE Letters SET Printed = 1 WHERE ??????
Can someone help me? Thanks a lot in advance!