No update of DBGrid based on TADOQuery?



Hello

I have a TADOQuery based on two TADOTable components: tblOrders, 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?
Thanks for any suggestions.

----------------

Delphi 2006 for Win32
MS Access database

tblOrders, tblCustomers: TADOTable;
MyQuery: TADOQuery;

SQL:

SELECT Orders.N, Orders.T, Orders.C, Customers.Name, Customers.Postcode
FROM Orders
LEFT JOIN Customers
ON Orders.T = Customers.T
ORDER BY Orders.N
DESC

.



Relevant Pages

  • Re: Update query help needed
    ... from one record to another in the tblCustomers table for the same customer? ... How will you ensure that a change for one customer gets written to every ... > 3) present mail/web ordering system ... >> record in tblOrders. ...
    (microsoft.public.access.queries)
  • Re: Whats the Access equivalent for this SQL Server query?
    ... Yes that query works good. ... FROM tblOrders ... Jason Lepack ... subquery and let the client handle that itty-bitty check. ...
    (microsoft.public.access.queries)
  • Sales Summary Date Range Filter Question?
    ... I have a select query with the totals row enabled. ... tblPacks. ... I have fields CustomerID from tblOrders, ProductName from tblProducts, ...
    (microsoft.public.access.queries)
  • Re: Update query help needed
    ... and write that record to the new database's tblOrders. ... and write a record to the new database's tblCustomers table. ... > 3) present mail/web ordering system ... >>> customer has more than one order so I effectively also need to update ...
    (microsoft.public.access.queries)
  • Re: Whats the Access equivalent for this SQL Server query?
    ... FROM tblOrders ... Jason Lepack ... After that I enter your query, the compiler directly fires a 'Syntax ... subquery and let the client handle that itty-bitty check. ...
    (microsoft.public.access.queries)