First issue:
When using ADPs you no longer have the ability to issue a me.refresh to
save the current record on a form (the me.refresh does a requery in an
ADP).
We usually do this before calling up another form or report that uses
some of the same data.
We came up with a work around that saves the current record's ID, does a
requery, then uses a recordsetclone to search for the ID and then set
the form's bookmark to the recordset clone's. This is the same method we
use for our search functions on our forms (without the requery
obviously).
This doesn't always work because of the second issue below.
How can you save the current record on a bound form in an ADP?
Second issue:
The above searching method seemed to work until we encountered larger
recordsets. It seems that Access doesn't get all the data immediately
after you requery so the recordsetclone only contains a small subset of
records... thus the search routine fails to find the record for higher
ID values. If you trace through the code a line at a time it works fine.
Adding a pause loop in the code doesn't work (and is a bad practice
IMO).
How can you make sure a recordsetclone contains all the records after a
requery?
For now I've had to implement a terrible practice... in code move the
form to the next record and then move back which causes the record to be
saved.
Using A2000, SQL2000
--
regards,
Bradley
A Christian Response
http://www.pastornet.net.au/response