Click here to Skip to main content
16,005,697 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: what is consouil programming Pin
Chatura Dilan9-Mar-06 17:15
Chatura Dilan9-Mar-06 17:15 
GeneralRe: what is console programming Pin
U_subhu4u9-Mar-06 17:30
U_subhu4u9-Mar-06 17:30 
Generalwhat is console programming Pin
U_subhu4u9-Mar-06 17:31
U_subhu4u9-Mar-06 17:31 
GeneralRe: what is console programming Pin
Chatura Dilan9-Mar-06 17:59
Chatura Dilan9-Mar-06 17:59 
AnswerRe: what is consouil programming Pin
Steve Pullan9-Mar-06 18:24
Steve Pullan9-Mar-06 18:24 
QuestionRichtextbox withh form Pin
zabsmarty9-Mar-06 15:16
zabsmarty9-Mar-06 15:16 
AnswerRe: Richtextbox withh form Pin
Chatura Dilan9-Mar-06 16:57
Chatura Dilan9-Mar-06 16:57 
QuestionHow to update a TableAdapter Pin
Chatura Dilan9-Mar-06 14:54
Chatura Dilan9-Mar-06 14:54 
Hi,

I’m new to ADO.Net and I’m using VB.Net 2005. I have created a form which
has a Data Grid, a ‘Show Data’ button and a ‘Update’ button.

Also I have created a BindingSource, a TableAdapter and a DataSet. BindingSource is connected to an Access Database.

I can get data by using

Me.myTableTableAdapter.Fill(Me.DBDataSet.myTable)

But when I tried to update the TabelAdapter

Me.myTableTableAdapter.Update(Me.DBDataSet.myTable)

I received an error

“Update requires a valid UpdateCommand when passed DataRow collection with modified rows.”

Then I double clicked the ‘DBDataSet.xsd’ on the Solution Explorer window and I selected myTableTableAdapter and created a new UpdateCommand

Now I receive an error

“Command text was not set for the command object.”

I do not know what I have to do nextConfused | :confused:

Please Help me

Thank you


chatura
AnswerRe: How to update a TableAdapter Pin
mayhem_rules9-Mar-06 17:09
mayhem_rules9-Mar-06 17:09 
GeneralRe: How to update a TableAdapter Pin
Chatura Dilan9-Mar-06 18:17
Chatura Dilan9-Mar-06 18:17 
GeneralRe: How to update a TableAdapter Pin
Chatura Dilan9-Mar-06 23:04
Chatura Dilan9-Mar-06 23:04 
QuestionDataGridView-IMP Pin
projectcode19-Mar-06 9:40
projectcode19-Mar-06 9:40 
QuestionWhat does the @ do in the following statement? Pin
kenn_rosie9-Mar-06 3:52
kenn_rosie9-Mar-06 3:52 
AnswerRe: What does the @ do in the following statement? Pin
Craster9-Mar-06 4:27
Craster9-Mar-06 4:27 
GeneralRe: What does the @ do in the following statement? Pin
Colin Angus Mackay9-Mar-06 23:44
Colin Angus Mackay9-Mar-06 23:44 
AnswerRe: What does the @ do in the following statement? Pin
Guffa9-Mar-06 4:31
Guffa9-Mar-06 4:31 
QuestionToolbar display Pin
contact ajo9-Mar-06 3:40
contact ajo9-Mar-06 3:40 
AnswerRe: Toolbar display Pin
Joshua Quick9-Mar-06 11:17
Joshua Quick9-Mar-06 11:17 
Questiondatabase triggers Pin
Qaiser_Iftikhar9-Mar-06 3:28
Qaiser_Iftikhar9-Mar-06 3:28 
AnswerRe: database triggers Pin
Steve Pullan9-Mar-06 11:08
Steve Pullan9-Mar-06 11:08 
AnswerRe: database triggers Pin
Krisky9-Mar-06 18:53
Krisky9-Mar-06 18:53 
QuestionRe: database triggers Pin
Qaiser_Iftikhar9-Mar-06 22:42
Qaiser_Iftikhar9-Mar-06 22:42 
AnswerRe: database triggers Pin
Steve Pullan10-Mar-06 0:40
Steve Pullan10-Mar-06 0:40 
GeneralRe: database triggers Pin
Qaiser_Iftikhar10-Mar-06 1:21
Qaiser_Iftikhar10-Mar-06 1:21 
QuestionRe: database triggers Pin
Steve Pullan12-Mar-06 12:13
Steve Pullan12-Mar-06 12:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.