Results 1 to 2 of 2
  1. #1
    lannoe is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2006
    Posts
    7

    Query ??


    I need to have a query that will:

    If there is an individual's e-mail then insert the e-mail;

    if no (individual's) e-mail then the query will grabe the the city's e-mail and insert it
    instead.

  2. #2
    CraigDolphin is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Apr 2009
    Location
    Custer, WA, USA
    Posts
    125
    What you need is a calculated field.

    You could try a couple of approaches:
    The simplest might be the Nz function

    Code:
     
    CalculatedEmail: Nz([FieldNameContainingIndividualEmail_Here],"EmailAddressToUseIfBlank_Here")

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

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