Re: No update of DBGrid based on TADOQuery?
- From: Brian Bushay TeamB <BBushay@xxxxxxxxx>
- Date: Wed, 22 Nov 2006 21:34:59 -0600
I have a TADOQuery based on two TADOTable components: tblOrders,How are you posting the records?
tblCustomers (see details below).
The query is displayed in a TDBGrid (with persistent fields).
When I post a new record in table tblOrders, I expect to see the change
immediately in the dbgrid, so I do the following:
MyQuery.Requery;
MyDBGrid.Repaint;
However, the grid is not updated after the new record is posted.
When I post a second record, then I the first one appears in trhe grid
(and in general, if I post the Nth record, the (N-1)th appears in the grid).
Is there any way to show immediately the new query with the newly posted
record? Could anybody help me with this?
Is this a query using Access?
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
- 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
- No update of DBGrid based on TADOQuery?
- Prev by Date: Re: ADOQuery in thread hangs
- Next by Date: Re: ADOQuery in thread hangs, Solved !!!!!!!!!
- Previous by thread: No update of DBGrid based on TADOQuery?
- Next by thread: Re: No update of DBGrid based on TADOQuery?
- Index(es):
Relevant Pages
|