hi ive got an SQL with the following code,
SELECT SUM (Travel_Cost)
FROM Travel
WHERE Job_ID=:mcode
in order to allow the user to enter a value from an edit component which is passed to the SQL i have got the following code aswell,
procedure TfrmExpenses.Button3Click(Sender: TObject);
begin
ADOQuery1.active:=false;
ADOQuery1.Parameters('mcode').AsString:=Edit1.Text;
ADOQuery1.active:=true;
end;
I keep on getting the error message
"missing operator or semicolon"
when i try to compile, any suggestions?