OrganizeInFolder Property

Microsoft Access Visual Basic

expression.OrganizeInFolder

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

The OrganizeInFolder property uses the following settings.

Setting Visual Basic Description
Yes True (Default) The supporting files are organized in a folder when you save the document as a data access page.
No False The supporting files are saved in the same folder as the data access page.

Note  The OrganizeInFolder property is available only by using Visual Basic.

The new folder is created in the folder where you have saved the Web page, and is named after the document. If long file names are used, a suffix is added to the folder name. The FolderSuffix property returns the folder suffix for the language support you have selected or installed, or the default folder suffix.

If you save a document that was previously saved with the OrganizeInFolder property set to a different value, Microsoft Access automatically moves the supporting files into or out of the folder, as appropriate.

If you don't use long file names (that is, if the UseLongFileNames property is set to False), Microsoft Access automatically saves any supporting files in a separate folder. The files cannot be saved in the same folder as the Web page.

Example

This example specifies that all image files are saved in the same folder when the document is saved as a Web page.

Application.DefaultWebOptions.OrganizeInFolder = False