Multiple records found...

General TRichView support forum. Please post your questions here
Post Reply
Ceprotec
Posts: 259
Joined: Thu Oct 28, 2010 6:09 pm
Contact:

Multiple records found...

Post by Ceprotec »

Hi Sergey!

I'm having a big problem in the second recording, that is, at first he set up right and generates the code to the next but it appears the error: Multiple records found, But only one was expected!

In my bank oa var Code is primary key and AutoincField. Use the following code:

TableEncerramentoLivros.Close;
TableEncerramentoLivros.Open;
TableEncerramentoLivros.Insert;
TableEncerramentoLivrosTIPO.AsInteger: = tipo.ItemIndex;
TableEncerramentoLivrosDESCRICAO.AsString: = descricao.Text;
TableEncerramentoLivrosTIPO_ES.AsString: = tipo.Text;
Stream: = TableEncerramentoLivros.CreateBlobStream (TableEncerramentoLivrosMODELO, bmWrite);
SRichViewEdit1.RichViewEdit.SaveRVFToStream (Stream, False);
Stream.Free;
TableEncerramentoLivros.Post;

I've tried using TableEncerramentoLivros.Next, but also not worked. What can I do?
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Is this problem really related to RVF field? If you remove the code for saving TableEncerramentoLivrosMODELO, does the problem still exist?
May be you have some key fields that must have unique values?
Post Reply