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?
Multiple records found...
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: