Thank you for your reply.
The dbnavigator has no SQL property, - this is exactly my problem.
This IBQuery_Kupons-select statement I can change, but it does not work under the line.
My suspect, this is due to "and FK_einkommen = :myChosenValue"
Let me explain the details:
The user (this is me) choses a certain fk_einkommen by keying in the number, fine.
Then I hit the button to list the values = the select statement-result is filled into the DBGrid, fine.
This is fine and can be edited by the DB navigator and within the DGGrid, fine
It can be edited as well, fine.
THEN I want the value to be changed into the DB.
and: No edit is brought to the database.
This means: Pushing the button again does not show the edited values, but the old ones.
This is not too surprising, because the and "FK_einkommen = :myChosenValue" no where finds its way in any update-statement.
It woud not be too hard, to find such a valid update-statement including the "and FK_einkommen = :myChosenValue".
My problem is:
Where to pass this statement into my code for using it in the query or navigator?
It has no SQL-property and the IBQuery only has a select-property.
In other words: I would need something like
myThing.SQL.Text:"'update value1 from tbtable where..."
WHERE can I find a "myThing" to pass such a statement?