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
RobinS - 21 Feb 2007 02:15 GMT
Assuming you are using a DataSet:
If myDataSet.HasChanges Then ...
Robin S.
-----------------------------------
>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
Manish Bafna - 21 Feb 2007 04:29 GMT
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.
> 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