Re: MFC ODBC Consumer
- From: "Paul S. Ganney" <paul.ganney@xxxxxxxxxx>
- Date: 19 Sep 2005 02:27:45 -0700
RG wrote:
> I have two inherited MFC Recordset classes that connect to an access db file
> and query the same table. The first class represents the snapshot and the
> second the dynaset. When I perform edit on the second one, the updates are
> registered much later after the Update method was run. Hence the first
> class can't see the latest updates even if recordset is closed and opened or
> requeried.
>
> Would anyone know why this is happening and how I could get around it?
>
A snapshot is as the name implies: it shows the data at the time it was
fetched. A dynaset willl reflect changes made elsewhere (e.g. by others
in a multi-user system) but a snapshot won't.
You can get round it by converting the first recordset to a dynaset
(assuming that you require both sets), only use the dynaset, or Requery
the snapshot after every update by the dynaset.
Hope that's useful.
Paul.
.
- Follow-Ups:
- Re: MFC ODBC Consumer
- From: Andres Garcia
- Re: MFC ODBC Consumer
- References:
- MFC ODBC Consumer
- From: RG
- MFC ODBC Consumer
- Prev by Date: MFC ODBC Consumer
- Next by Date: Database Configuration
- Previous by thread: MFC ODBC Consumer
- Next by thread: Re: MFC ODBC Consumer
- Index(es):
Relevant Pages
|