Hi Ljhopkins,
The DataSet designer can only generate the InsertCommand, UpdateCommand and DeleteCommand from SelectCommand which returns items from more than one table. To enable the auto-generation, the SelectCommand must have the following feature.
· Returns items from single-table
· Returns at least one primary key or unique column
In your case, your SelectCommand returns item from two tables, you need to create the InsertCommand, UpdateCommand and DeleteCommand yourself to make the DbDataAdapter to work.
Code Snippet
........
myTableAdapter.DeleteCommand = sqldbdelectcommand;
myTableAdapter.UpdateCommand = sqldbupdatecommand;
myTableAdapter.InsertCommand = sqldbinsertcommand;
........
More information, please check:
· http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldataadapter.updatecommand.aspx
· http://support.microsoft.com/kb/308507
Hope this helps.
Best regards.
Rong-Chun Zhang
Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs