Some answers to your questions
a/. Why is it that sometimes the data field is referenced [Recipients].[Firstname], and other times @{Recipients}.[Firstname]?
b/. Why precede the above SQL statement with @{CampaignDB}: ?
c/. In the UserView query should the SELECT clause list the fields defined in the UserView, thus binding results to them, or should it refer to the actual table and fields that the data is held in?
Try creating a userview and use the below to get to what you need. Remember the userview needs to contain all the fields you are requiring and an ID to link from the Database to the adore, I used email. This is an example of a userview select I’ve used before
@{ CampaignDB }:
SELECT [TeamMembers].[Firstname], [TeamMembers].[Lastname], [TeamMembers].[Mobile], [TeamMembers].[Email]
FROM [Recipients]
WHERE [Recipients].[Email] = |->[Email]
Regards,
Tyrone O’Brien
Director | DM Solutions Specialist

--
You received this message because you are subscribed to the Google Groups "XMPie Interest Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xmpie-users...@googlegroups.com.
To post to this group, send email to xmpie...@googlegroups.com.
Visit this group at https://groups.google.com/group/xmpie-users.
For more options, visit https://groups.google.com/d/optout.
| Virus-free. www.avast.com |