Re: No update of DBGrid based on TADOQuery?




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?
How are you posting the records?
Is this a query using Access?

--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.



Relevant Pages

  • Re: update query: still having problems
    ... bring the workstatus field in the grid and, at the criteria line, write: ... UPDATE Department INNER JOIN Sheet1 ON Department.employeeID = ... What I want to do is press a button that will run the query and update the ...
    (microsoft.public.access.queries)
  • Re: Sequence numbering labels
    ... The upper pane of the query design window contains the tables. ... lower pane is the output grid. ... table field to the query output grid' ...that I did not understand, ... and put that count field into the label via label wizard. ...
    (microsoft.public.access.modulesdaovba)
  • Re: VB.NET - How do I return an AutoNumber from an Insert Statement using the DataGridView
    ... > Thanks for that Bart, ... > the values from my Grid to the TableAdapters Insert method. ... >> choose add query, then choose insert query, use a query like below, ... >>> stored in the SQL Database but a VB generated (or disconected dataset ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Using queries in a table adaptor?
    ... using the query wizard I have added several queries ... FROM [Drive Package] ... Not there is no Join here these are just simple Queries on a simple table. ... I am use the flex grid because of some unique features ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: timeline/calendar datagrid
    ... MS Access MVP ... query via code --the query would create a temp table then populate the ... month/year across the top and a grid for each week within each month. ... i'm not interested in the color, etc of the screenshot. ...
    (microsoft.public.access.forms)