Application.SaveAsAXL (Access)

Exports the specified object to an Application XML (AXL) file.

The SaveAsAXL method does not provide a warning when the file specified in the FileName argument already exists. If this occurs, the file will be overwritten. The SaveAsAXL method generates a run-time error if the current database is not a web database. For more information about AXL, see [MS-AXL]: Access Application Transfer Protocol Structure Specification.

SaveAsAXL (ObjectType, ObjectName, FileName)


Dim strObjectName As String: strObjectName = 
Dim strFileName As String: strFileName = 
SaveAsAXL ObjectType:=acDataAccessPage, ObjectName:=strObjectName, FileName:=strFileName

Arguments

The following arguments are required:

ObjectType (AcObjectType) - Specifies the type of object to export.

Here you can find possible values for AcObjectType

ObjectName (String) - Specifies the name of the object to export.

FileName (String) - Specifies the full path and file name of the AXL file to create.