O'Reilly logo

Access™ 2007 VBA Programmer's Reference by Armen Stein, Geoffrey Griffith, Rob Cooper, Teresa Hennig

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required