Posted on 2003-03-11
I add a beforepost to my adotable for last confirming as below:
procedure TForm1.ADOTable1BeforePost(DataSet: TDataSet);
if messagedlg('do you accepet these data ?',mtconfirmation,[mbyes,mbno,mbcancel],0)<>mryes then
I have a two question:
1-The adotable state remain on inserting mode( the last mode) but I want to go to dsbrowse mode after aborting
how can do this work(I know that with close and open again, the table go to dsbrowse but not good in my mind)?
2-the dbgrid show the last data in the unvalid record( for aborting in beforepost) how can delete these data ?
do you have any solution that changing my way in giving messagedlg or etc?
thanks a lot.