Datanase Edit confirmation
Posted on 2002-03-25
I am having some problems confirming my data being processed. I want to confirm before i atempt to edit anything in the table, like "do you want to edit this Record?" if I dont want to, i want to just cancel it away, and exit the fiel.
I tried this way without any luck
procedure TForm1.DBNavigator1Click(Sender: TObject; Button: TNavigateBtn);
if button = nbEdit then
if (MessageDlg('Redigere følgende post?', mtWarning, [mbYES,mbNO], 0) = mrYes) then datamodule2.DataSource1.edit else exit;