G.16. The SmartTag Object

All of Microsoft Office 2007 has the capability to use SmartTags. You can programmatically manipulate the SmartTag object by accessing its properties and methods.

The properties of the SmartTag object are listed in the following table.

PropertyData TypeDescription
ApplicationApplication objectRepresents the currently active Access application.
IsMissingBooleanReturns true if the SmartTag isn't installed or isn't correctly installed.
NameStringReturns the name of the SmartTag.
ParentObjectRefers to the parent object of the SmartTag.
PropertiesSmartTagProperties collectionReturns the collection of all properties for a particular SmartTag.
SmartTagActionsSmartTagActions collectionReturns the collection of all actions available for a specific SmartTag.
XMLStringRepresents the XML code for a SmartTag.

The SmartTag object has only one method: Delete.

The SmartTagActions collection and the SmartTagProperties collection have the standard properties associated with any collection (Application, Count, Item, and Parent). The individual SmartTagAction object has one method, Execute, which performs the specified SmartTag action. The SmartTagProperty object also has only one method: Delete.

Get Access™ 2007 VBA Programmer's Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.