This was the only thing, which worked just by clicking. I have little idea, what happens behind:
I have a DBEdit, a Query and an Update query.
"Above" it, there is a radio-box, where the user (=just me) can choose, which table he wants to edit.
Some table-choices work, others don't. I gave up, because it took too much time.
This choice was the only choice which worked fine, ;-)
The option-chosen we talk about leads to this OnClick-myTableEditbutton:
If (RadioGroup_bearbeiten.ItemIndex = 5) then // tbwaren
begin
if RadioGroupEx_bearbeiteWare.ItemIndex > 0 then begin // das sollte ohnehin nie sein können, doch zur Sicherheit
ware_:=RadioGroupEx_bearbeiteWare.Items.strings[RadioGroupEx_bearbeiteWare.ItemIndex];
s:=Frame_Waren.KuerzelInWare(ware_); // ware_ brauche ich für die Query unverändert
Panel_WareKopf.Caption:='Stammdaten für ' + s; // schreibt z.B. Stammdaten Weizen
s:='select * from tbkennzahlen where COMM = :ware_';
s:=s + ' order by COMM';
IBQuery_Ware.SQL.Text:=s;
IBQuery_Ware.ParamByName('ware_').AsString:=ware_;
IBQuery_Ware.Active:=true;
end; end;
There are a lot of input fields and tables this form was inteded to change in my db.
But only one DBEdit, for this specific, it looks like this
object DBEdit_LockLimit: TDBEdit
Left = 24
Height = 25
Top = 24
Width = 73
DataField = 'DAILY_LIMIT'
DataSource = DataSource_Ware
AutoSize = False
MaxLength = 4
TabOrder = 0
end
I hope, this is understandable. If it would be too complex, I leave it like it is.