Blackadder6
Programmer
I want delete all the records in an Access table.
The code below does not work.
procedure TForm1.Emptytable2Click(Sender: TObject);
begin
AdoQuery1.SQL.Add('DELETE from dupmaster');
AdoQuery1.ExecSQL;
end;
If I use 'DELETE * from dupmaster
I still get the same error message which is "exception class EOleException with message Syntax error in FROM clause.
Can anyone hlp me. I wonder if I need to close the database or something like that.
Terry
The code below does not work.
procedure TForm1.Emptytable2Click(Sender: TObject);
begin
AdoQuery1.SQL.Add('DELETE from dupmaster');
AdoQuery1.ExecSQL;
end;
If I use 'DELETE * from dupmaster
I still get the same error message which is "exception class EOleException with message Syntax error in FROM clause.
Can anyone hlp me. I wonder if I need to close the database or something like that.
Terry