DOC: CompactDatabase IntelliSense Different than Documentation (192153)



The information in this article applies to:

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

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



Modification Type:MinorLast Reviewed:1/8/2003
Keywords:kbprb KB192153