Re: No update of DBGrid based on TADOQuery?
- From: macaileacs <available@xxxxxxxxxxxx>
- Date: Thu, 23 Nov 2006 18:24:24 +0100
How are you posting the records?
Is this a query using Access?
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
Thanks for the reply.
Though I use an Access database (*.mdb file), I don't use Access directly; everything is supposed to happen within the application.
The records are posted like that:
with tblOrders do
begin
if not Active then Open;
Append;
FieldValues['Field1'] := 'some string';
//etc.
Post;
end;
I then do the following:
PostNewRecord;
qry.Requery;
dbGrid.Repaint;
From the behaviour, I get the impression that the record posting works asynchronously, that is, when Requery is called, it is not sure whether the the record is already posted, and requery and Repaint simply give the old state of the tables... Could this be the case? If yes, how can this be dealt with?
.
- Follow-Ups:
- Re: No update of DBGrid based on TADOQuery?
- From: macaileacs
- Re: No update of DBGrid based on TADOQuery?
- References:
- No update of DBGrid based on TADOQuery?
- From: macaileacs
- Re: No update of DBGrid based on TADOQuery?
- From: Brian Bushay TeamB
- No update of DBGrid based on TADOQuery?
- Prev by Date: Re: ADOX set-up
- Next by Date: Re: No update of DBGrid based on TADOQuery?
- Previous by thread: Re: No update of DBGrid based on TADOQuery?
- Next by thread: Re: No update of DBGrid based on TADOQuery?
- Index(es):
Relevant Pages
|