Prompt if save modified data when close form?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a data entry form with bindingsource and tableadapter (Access MDB).
How to detect if there is any unsaved modification when closing the form?

thanks
 
Assuming you are using a DataSet:

If myDataSet.HasChanges Then ...

Robin S.
 
Hi,
Also if there is unsaved data then you can prevent the form from closing by
writing e.Cancel = true in the form closing event.

Thanks and Regards,
Manish Bafna.
MCP and MCTS.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top