ACC97: CommitTrans Help Topic Uses dbFlushOSCacheWrites Constant (165829)



The information in this article applies to:

  • Microsoft Access 97

This article was previously published under Q165829
Moderate: Requires basic macro, coding, and interoperability skills.

SYMPTOMS

The Microsoft Access 97 Help topic "BeginTrans, CommitTrans, Rollback Methods" contains the following statements.

In the Syntax section:

workspace.BeginTrans|CommitTrans[dbFlushOSCacheWrites]|Rollback

In the third paragraph of the Remarks section:

In a Microsoft Jet workspace, you can include the dbFlushOSCacheWrites constant with CommitTrans. This forces the database engine to immediately flush all updates to disk, instead of caching them temporarily.

These statements are incorrect.

RESOLUTION

The dbFlushOSCacheWrites constant was changed to dbForceOSFlush in Microsoft Access 97. Use the dbForceOSFlush constant or its numeric value, which is 1.

MORE INFORMATION

The dbForceOSFlush constant only works if your database resides on a Microsoft Windows 95 or Windows NT computer. If the database file resides on another type of server, such as Novell Netware or Banyan Vines, dbForceOSFlush does not correctly command the operating system to flush all updates to disk.

Modification Type:MinorLast Reviewed:10/11/2006
Keywords:kbprb kbProgramming KB165829