>>>>When I type a new value in Query and press ENTER, old value returns.<<<<
You mean ADOQuery with an adoconnection and a datasource that you connect to the adoquery and the dbgrid reads from the datasource.
if i understood correctly what you mean, if you want to update some fields to the database and not to the dbgrid as you said you have to put the adoquery to update mode.
for example
...code code...
adoquery1.Edit;
adoquery1.FieldByName('fie
adoquery1.Post;
....code code.....
hope that helps...
Main Topics
Browse All Topics





by: RickJPosted on 2007-06-15 at 03:03:49ID: 19290389
Make sure you are working with a dataset that can be updated.
Depending on your sql statement and database, setting the RequestLive property on the query to true will work.