Results 1 to 3 of 3
  1. #1
    hildethedog is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2018
    Posts
    2

    Mailing lables

    When trying to print lables i have an issue: in my records I have home and work addresses.For some people i have either address or both. When trying to set up mailing lables is it possible to direct it " if no home address then business"? Because right now I have about 50% of the lables will have no adresses since i don't have the home info.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,716
    Yes it's possible.
    Use a query to identify records for the labels. Run the query, and ensure it gets the info you want/need, then move to labels.

    This is the sort of conditional statement you need in your query
    AddrToPrint: iif(isnull(homeaddress),workaddress,homeaddress) which means

    if the homeAddress isNull then use the workaddress,
    if not then use the homeaddress.

    You'll have to test with your field names.

    You could also try

    addrToUse: iif(len(trim(homeaddress)) = 0,workaddress,homeaddress) which means

    if the length of the homeaddress is 0, then use the workaddress, else use the homeaddress

    Good luck.
    Last edited by orange; 03-13-2018 at 01:18 PM.

  3. #3
    hildethedog is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2018
    Posts
    2
    Quote Originally Posted by hildethedog View Post
    When trying to print lables i have an issue: in my records I have home and work addresses.For some people i have either address or both. When trying to set up mailing lables is it possible to direct it " if no home address then business"? Because right now I have about 50% of the lables will have no adresses since i don't have the home info.
    Can't wait to try this, thanks.

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

Similar Threads

  1. Replies: 21
    Last Post: 02-13-2018, 06:59 AM
  2. Dynamic button lables using Dlookup
    By frostnuts in forum Access
    Replies: 9
    Last Post: 03-20-2013, 10:01 AM
  3. Replies: 5
    Last Post: 12-19-2012, 09:51 AM
  4. Replies: 1
    Last Post: 10-18-2011, 07:10 PM
  5. Programming lables to hide again.
    By 95DSM in forum Programming
    Replies: 3
    Last Post: 12-30-2010, 01:43 PM

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