CompanyName

Method
Retrieves the name of the current company.

Category
Database

 

Syntax
Sub CompanyName As String

 

Comments
CompanyName returns the CompanyName of the company that was opened by OpenCompany. The returned value is a string containing the current CompanyName. If OpenCompany has not been called, the function returns an empty string.

You cannot select another current CompanyName with this function. You must use CloseCompany and OpenCompany to change to another company. Companies can only be created and deleted in C/SIDE.



© 2009 Microsoft Corporation. All rights reserved.