Returns a String that represents the name of the table within the data source file that contains the mail merge records. The returned value may be blank if the table name is unknown or not applicable to the current data source. Read-only.
expression A variable that represents a MailMergeDataSource object.
Return Value String
This example displays a message with the name of the mail merge data source table name.
Visual Basic for Applications
Select Case .TableName
MsgBox "This is an Employee mail merge publication."
MsgBox "This is a Customers mail merge publication."
MsgBox "This is a Suppliers mail merge publication."
MsgBox "This is a Shippers mail merge publication."
MsgBox "This is a " & .TableName & " mail merge publication."