Results 1 to 2 of 2
  1. #1
    yframediscounts is offline Novice
    Windows Vista Access 2007
    Join Date
    Feb 2015
    Posts
    1

    Email Template IIF(Len) command

    Hi

    In the Email Template I am trying to put the words "Sent by Yodel Tracked" if the ORDER.POSTALTRACKINGNUMBER has a tracking number in the field

    I am try to use



    EVAL{BEGIN}

    <IIF[Len[{ORDER.POSTALTRACKINGNUMBER}]>0,"Sent by Yodel Tracked.",""]>

    {END}

    But the return error is

    EVAL ERROR: Failed to evaluate the rule expression: The left operand token is null: There may be an issue with the rule syntax.

    Can anyone Help

    Regards

    Paul

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    are we sure we are talking about an Access database? I myself do not know what is meant by the 'email template'; but in any case Access syntax is:

    IIF(Len[ORDER].[POSTALTRACKINGNUMBER]>0,"Sent by Yodel Tracked.","")

    of course if it is truly a number then you don't have to use length but rather just >0

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Need Help With Email Command
    By jerryh in forum Access
    Replies: 1
    Last Post: 11-07-2014, 10:48 AM
  2. Replies: 1
    Last Post: 05-17-2013, 08:35 AM
  3. Send email using template
    By Kivan in forum Programming
    Replies: 1
    Last Post: 09-07-2012, 12:39 PM
  4. Command button to open email template
    By avarusbrightfyre in forum Import/Export Data
    Replies: 5
    Last Post: 09-10-2011, 11:18 AM
  5. Selecting a template to email using Access 2007
    By michaeljohnh in forum Programming
    Replies: 3
    Last Post: 10-20-2010, 09:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums