Visual Studio Development Bookmark and Share   
 index > Visual Basic Express Edition > VB Express 2008 One to Many data entry forms
 

VB Express 2008 One to Many data entry forms

I have tried to follw Beth's video on creating a one to many forms using VB 2008 Express Edition (url: http://msdn.microsoft.com/en-us/vbasic/bb643827.aspx). Having created the dataset and dragged the relevant table to the form my code is different to beth's. Please can some tell me what I am doing wrong.

My Code:

Private Sub TblContractMainBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TblContractMainBindingNavigatorSaveItem.Click
Me.Validate()
Me.TblContractMainBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.ContractsDataSet)

End Sub

As you will see my code refers to tblContractMain but not the secondary table tblContractDetail - although this is shown in the dataset.

Am I doing something fundamentally wrong.
New learner of Visual basic 2005. Previously and Access user
Beeky  Sunday, October 18, 2009 11:16 AM
Nothing wrong with that youe code is fine, perfect, so use it. the dataset is the name of the dataset named by you when wizarding it. I post my code for you to see:

Private Sub StudentBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StudentBindingNavigatorSaveItem.Click

End If

Me.Validate()

Me.StudentBindingSource.EndEdit()

Me.TableAdapterManager.UpdateAll(Me.SalvadorSystemDataSet) my dataset is different from the studentbindingsource....works fine. that the name of my database, the all table reference....


Don't judge me, just Upgrade me. Thanks!
  • Marked As Answer byBeeky Monday, October 19, 2009 4:50 PM
  •  
Malange  Sunday, October 18, 2009 3:42 PM
Nothing wrong with that youe code is fine, perfect, so use it. the dataset is the name of the dataset named by you when wizarding it. I post my code for you to see:

Private Sub StudentBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StudentBindingNavigatorSaveItem.Click

End If

Me.Validate()

Me.StudentBindingSource.EndEdit()

Me.TableAdapterManager.UpdateAll(Me.SalvadorSystemDataSet) my dataset is different from the studentbindingsource....works fine. that the name of my database, the all table reference....


Don't judge me, just Upgrade me. Thanks!
  • Marked As Answer byBeeky Monday, October 19, 2009 4:50 PM
  •  
Malange  Sunday, October 18, 2009 3:42 PM

You can use google to search for other answers

Custom Search

More Threads

• Connection to access with vb2005 error
• Copying changing filenames
• Sunken Textbox, Combobox
• Saving and retrieving "Hello World" and work in progress
• Windows Apps (unlike Console Apps) Won't Run Under Visual Basic 2005 Express
• SQL 2005 Express
• "INTERNET EXPLORER SCRIPT ERROR"
• ado db
• how do I add quotation marks to this statement lstMatch.Items.Add(" " ")
• How to download file like download manager