Microsoft KB Archive/192153

From BetaArchive Wiki
Knowledge Base


DOC: CompactDatabase IntelliSense Different than Documentation

Article ID: 192153

Article Last Modified on 1/8/2003



APPLIES TO

  • Microsoft Visual Basic 5.0 Enterprise Edition
  • Microsoft Visual Basic 6.0 Enterprise Edition



This article was previously published under Q192153

SUMMARY

The IntelliSense parameters for the DAO 3.5 CompactDatabase method are different than the parameters specified in the documentation that appears in the Help files and Visual Basic Books Online.

MORE INFORMATION

The correct IntelliSense parameters that actually show up are:

   CompactDatabase (SrcName, DstName, [dstLocale], [Options], [SrcLocale])
                


There is no mention here that there is a parameter for a password. Visual Basic Help and Visual Basic Books Online specify that the CompactDatabase method is as follows:

   CompactDatabase (olddb, newdb, locale, options, password)
                


The documentation talks about the password as a parameter, but it does not talk about the SrcLocale, which is a parameter in the IntelliSense display.

The actual functionality when using CompactDatabase Method accepts a database password in the same position as the SrcLocale parameter displayed by IntelliSense. See the REFERENCES section of this article for more information on the syntax used in code to pass a password through to a database that is protected. It is also important to note that the Jet35upd.exe is available as an upgrade designed to fix problems with the CompactDatabase method in Jet 3.5.

REFERENCES

For additional information, please see the following articles in the Microsoft Knowledge Base:

170961 : HOWTO: Change an Access Database Password

172733 : ACC97: Updated Version of Microsoft Jet 3.5 Available on MSL





Additional query words: kbdocerror kbDAO350 kbJET kbVBp600 kbVBp500 kbDAO kbdse kbDSupport kbVBp kbdocfix

Keywords: kbprb KB192153