UseLongFileNames Property

Microsoft Access Visual Basic

UseLongFileNames Property

       

You can use the UseLongFileNames property to specify or determine whether long file names are used when a document is stored as a data access page. Read/write Boolean.

expression.UseLongFileNames

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

Remarks

The UseLongFileNames property uses the following settings.

Setting Visual Basic Description
Yes True  (Default) Use long file names whenever possible when you save the document as a data access page.
No False  Use the 8.3 DOS filename format.

The UseLongFileNames property is available only by using Visual Basic.

If you don't use long file names and your data access page has supporting files, Microsoft Access automatically organizes those files in a separate folder. Otherwise, use the OrganizeInFolder property to determine whether supporting files are organized in a separate folder.

Example

This example cancels the use of long file names as the global default for the application.

Application.DefaultWebOptions.UseLongFileNames = False