Re: Checking Tadoquery for changes
- From: "Vu Quang Thang" <thangvqATgmail.com>
- Date: Fri, 23 Sep 2005 08:51:04 +0700
>
> Is there anyway I can check a query for changes?
>
> Reason being, I don't want to prompt the user to save the information on
> the form close if the data has not been modified or is blank.
>
Hi,
I think we can check the status of the ADODataset when close form. May be
like this
FormCloseQuery(....)
begin
if ADODataset.State in [dsEdit,dsInsert] then
if MessageDlg('Save change?',mtConfirmation,[mbYes,mbNo],0) = mrYes
then
ADODataset.Post
else
ADODataset.Cancel;
end;
Thang
.
- Follow-Ups:
- Re: Checking Tadoquery for changes
- From: Josh Fraser
- Re: Checking Tadoquery for changes
- References:
- Checking Tadoquery for changes
- From: Josh Fraser
- Checking Tadoquery for changes
- Prev by Date: Re: String field length truncated to 255
- Next by Date: Re: Kind of a newb question
- Previous by thread: Checking Tadoquery for changes
- Next by thread: Re: Checking Tadoquery for changes
- Index(es):
Relevant Pages
|