Hi there I am struggling to delete a record from a DB table, it shold be easy but I just am not sure how to do it...
Here is my code but the delete procedure asks for parameters and I am not sure what they are for:
function RemoveAccountfromAllAccountsTable(SelectedAccount : string):boolean;
//Purpose: to remove the Accoount from the AllEmailAccounts table
AccountRemoved : boolean;
AccountRemoved := false;
with datasimplemail do
while not tblAllEmailAccounts.Eof do
if (tblAllEmailAccountsAccountName.value = SelectedAccount) then //you have found the selected account
//Delete; // I need a procedure to Delete the re cord that we have looped to!!!
AccountRemoved := true
result := AccountRemoved;
what do you suggest