By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,101 Members | 1,335 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,101 IT Pros & Developers. It's quick & easy.

Same Access Table on 2 Forms

P: 2
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.Item(1).Name 'Adds the ID data into "row".
row("Duration") = oProj.Tasks.Item(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
Apr 19 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.