Click here to Skip to main content
16,004,653 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hello guys developers, I m developing a system using visual basic studio 2010 with access database, I'm using data bound control not ado.net code but data bound source code.
I m using tabcontrol and menu bar, I would like to know what I can put between code for different forms so that as I'm editing using menu so that the change of one will not change others, I'm fearing that when I click on delete that I may find myself delete others data from different pages of tabcontrol.

I would like some to help, actually let me send you how there are organized.
'add(menu bar)
    Private Sub ToolStripMenuItem6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripMenuItem6.Click
        MembersBindingSource.AddNew()
        GendersBindingSource.AddNew()
        CoursesBindingSource.AddNew()
        FacultiesBindingSource.AddNew()
        CategoriesBindingSource.AddNew()
        LendingQueryBindingSource.AddNew()
        loadpic()
        BooksBindingSource.AddNew()
        AuthorsBindingSource.AddNew()
        PublishersBindingSource.AddNew()
        AmountBindingSource.AddNew()
        SuppliersBindingSource.AddNew()
        User_detailsBindingSource.AddNew()
        ReturnBindingSource.AddNew()

 'save(menu bar)
    Private Sub ToolStripMenuItem7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripMenuItem7.Click
        
        MembersBindingSource.EndEdit()
        MembersTableAdapter.Update(CUULibDBDataSet.members)
        Validate()
        CoursesBindingSource.EndEdit()
        CoursesTableAdapter.Update(CUULibDBDataSet.courses)
        Validate()
        FacultiesBindingSource.EndEdit()
        FacultiesTableAdapter.Update(CUULibDBDataSet.faculties)
        Validate()
        GendersBindingSource.EndEdit()
        GendersTableAdapter.Update(CUULibDBDataSet.Genders)
        Validate()
        CategoriesBindingSource.EndEdit()
        CategoriesTableAdapter.Update(CUULibDBDataSet.categories)
        Validate()
        BooksBindingSource.EndEdit()
        BooksTableAdapter.Update(CUULibDBDataSet.books)

    End Sub
Posted
Comments
Sergey Alexandrovich Kryukov 28-Aug-13 14:26pm    
How a menu bar can be related to Access? Do you know what is separation of concerns?
—SA
DAVID DUSHIMIMANA 29-Aug-13 3:20am    
I related mane bar to access, I would like it to be applied as buttons. I have buttons and the same time have menu bar, but I don't exactly How I can use it, so that one change might not affect another on different pages of tabcontrol.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900