Public Sub GetCodeTableName()

   Dim oCTS As CCodeTablesServer

   Dim oServices As FE_Services

   Dim oATS As CAttributeTypeServer


   Set oServices = New FE_Services

   oServices.Init FE_Application.SessionContext


   Set oCTS = oServices.CreateServiceObject(bbsoCodeTablesServer)

   oCTS.Init FE_Application.SessionContext


   Set oATS = oServices.CreateServiceObject(bbsoAttributeTypeServer)

   oATS.Init FE_Application.SessionContext, bbGlobalAttributeType_EAIndividual


   MsgBox oATS.GetAttributeCodeTableID(oATS.GetAttributeTypeID("Subject of Interest"))


   MsgBox oCTS.TableName(oATS.GetAttributeCodeTableID(oATS.GetAttributeTypeID("Subject of Interest")))


   Set oATS = Nothing



   Set oCTS = Nothing



   Set oServices = Nothing

End Sub

Disclaimer: We provide programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes you are familiar with Structured Query Language and the tools used to create and modify SQL statements and Crystal Reports. Our Customer Support may help explain the functionality of a particular procedure, but we will not modify, or assist you with modifying, these examples to provide additional functionality.