I cant figure out how to get this nMyNewId back from the ADOCommand once
executed.
// Bund of SQL Statements....
// ....
nMyNewId:= cmdDuplicate.Execute;
The above does not compile....
Thank you.
Marco
--
Brian Bushay (TeamB)
Bbu...@NMPLS.com
procedure TForm1.Button1Click(Sender: TObject);
begin
ADOCommand1.CommandText:='Select max(id) from abc';
edit1.Text:=IntToStr(ADOCommand1.Execute.Fields[0].Value);
end;
Marco