Microsoft KB Archive/165829

= ACC97: CommitTrans Help Topic Uses dbFlushOSCacheWrites Constant =

Article ID: 165829

Article Last Modified on 1/19/2007

-

APPLIES TO


 * Microsoft Access 97 Standard Edition

-



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.

Keywords: kbprb kbprogramming KB165829

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.