FreeriderUK
Well-known member
Hi all,
I am editing a Customers table from Access database on Form2.
On Form1 I have a combobox bound to the Customers table.
When I update the changes and close Form2, I want the combobox to include the changes I made.
I have tried the following code in my close form event on Form2.
But it doesn't fill the dataset on Form1.
I can execute this on Form1:
and it updates ok.
How do I update the dataset when I close Form2?
Thanks in advance.
I am editing a Customers table from Access database on Form2.
On Form1 I have a combobox bound to the Customers table.
When I update the changes and close Form2, I want the combobox to include the changes I made.
I have tried the following code in my close form event on Form2.
VB.NET:
Form1.MyCustomersTableAdapter.Fill(Me.MyDataSet.Customers)
But it doesn't fill the dataset on Form1.
I can execute this on Form1:
VB.NET:
[B]Me[/B].MyCustomersTableAdapter.Fill(Me.MyDataSet.Customers)
How do I update the dataset when I close Form2?
Thanks in advance.