update form with changes made to the database

  • Thread starter Thread starter Martin Williams
  • Start date Start date
M

Martin Williams

I have a main form with a bound combobox. I then have another form which is
accessed from the main form, which I used to update the data that is bound
to the combobox. I know how to update a database, but how do I update the
main form when I close the current form?
Thanks for all responses.

Regards,
Martin Williams
 
You can either refill your data, or pass back the dataset and merge it with
the dataset on your main form.

To know when this happens you can raise an event or open the new form
modally.

Otherwise, when it comes back, call your fill command again from your
dataadapter to replenish your data.

-CJ
 
Back
Top