Same Access Table on 2 Forms

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TDC
    New Member
    • Apr 2007
    • 2

    Same Access Table on 2 Forms

    Hello,

    I am writing an application (VB Visual Studio 2005) which connects to an Access database with several simple Tables.

    When the user invokes a Dialogue box a table is populated with data (read from a MS Project file) and the results displayed in a list view:

    Dim row As Data.DataRow
    TaskList.Items. Clear() 'Clears the items currently displayed in the TaskList.
    MyDataset.Tasks .Clear() 'Clears the table.

    row = MyDataSet.Tasks .NewRow()
    row("Name") = oProj.Tasks.Ite m(1).Name 'Adds the ID data into "row".
    row("Duration") = oProj.Tasks.Ite m(1).Duration 'Adds the Duration data in.
    MyDataSet.Tasks .Rows.Add(row)

    This is fine but I also want the same information (table) to be displayed on another form after the user closes the dialogue box.

    I created a ListBox and bound it to the same data source but it only shows the initial row od data which I entered when I created the Access database. How do I keep the second form in sync?

    Thank you.

    Chris
Working...