Topic: combobox showrecord

I have a problem, when I choose from the combobox, the information about it appears, but the combobox becomes empty as shown in the attached file

Post's attachments

Attachment icon projet.zip 367.3 kb, 244 downloads since 2021-10-14 

Re: combobox showrecord

I'm not sure to what you are trying to do here but try changing

Form1.Button3.Click;

to

Form1.Edit4.Clear;
if Form1.ComboBox2.dbItemID > 0 then
    Form1.Edit4.Text := SQLExecute('SELECT Prixachat FROM PORTEGRIS WHERE id='+IntToStr(Form1.ComboBox2.dbItemID));
brian

Re: combobox showrecord

The operation worked, thank you very much