
Odd Behavior With CommitTrans
I guess I should have included my module declares, rst is at the module
level and is in scope in this case. But I do appreciate your response.
Again, the routines all work until I attempt to run them twice in a row. The
problem is that all of the recordsets in the call stack get uninitialized
even though they are still in scope. Note the following post from 3/18/98.
Subject: Access97 committrans behavior
Date: 1998/03/18
Newsgroups: borland.public.delphi.database.desktop[More Headers]
I'm working with an Access97 database using DAO3.5 through an OLE automation
connection rather than through the BDE.I'm finding that the statement
myWorkSpace.CommitTrans(dbForceOSFlush);
invalidates all my dataset objects, which must then be reopened before
proceeding. The objects aren't set to nil--but the next call returns an Ole
'object invalid or no longer set' error. Is this normal? Anyone else
seeingthis?
Also, the Microsoft documentation says that the call should be
CommitTrans (dbFlushOSCacheWrites)
but there's no such constant in the type library,
nly{ CommitTransOptionsEnum }
dbForceOSFlush = 1;ThanksBobD
This is a real issue, please, more help is needed.