New Record Refresh/Requery/ShowAllRecords

  • Follow


When I add records to a recordset using code (OpenRecordset - dbOpenDynaset, .
addnew & .update) I find that an immediate requery does not always show the
new record in the form I use to display the data.   The form is linked to a
query which orders the records but does not restrict the selection.  A delay
with DoEvents sometimes works but not always. How can I reliably get the new
record to be displayed without the need for a manual 'remove filter/sort'.  I
tried putting in Requery, ShowAllRecords and refresh after the .update (and
close recordset and db) with and without delays up to a couple of seconds but
these do not fix the problem.  Sometimes two manual remove filter/sort
commands are needed.

0
Reply NigelLawton 8/13/2007 4:26:31 PM


0 Replies
417 Views

(page loaded in 0.04 seconds)

Similiar Articles:
















7/13/2012 4:30:43 PM


Reply: