Results 1 to 3 of 3
  1. #1
    rcotero is offline Novice
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    1

    Label Help

    Here is the issue:



    I have been working on a Microsoft Access database for about two months. I am ready to do a mailer and I need to make labels.

    I have no problems populating the data in the label format I need.

    On the first line of the label, I need first, middle, and last name.
    When I create the template for the label, I choose "first name" and insert a space, "middle name" and a then a space, then "last name." For those in my database who have all three names, this works perfectly.

    However, those in my list who do not have a middle name end up with two spaces in-between their first and last name. I don't see it as a problem, but my boss will not allow the labels to sent out with the extra space.

    Example 1: Ryan Christopher Otero
    <FIRST NAME> <MIDDLE NAME> <LAST NAME>

    Which populates as: Ryan Christopher Otero

    Example 2: Ryan Otero
    <FIRST NAME> <MIDDLE NAME> <LAST NAME>

    Which populates as: Ryan Otero


    Ideas? Help? Solution?

    Thanks again!

  2. #2
    cnstarz is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Oct 2010
    Posts
    31
    this isn't a solution, but what about Lastname, Firstname MI? that way the space is on the end and isn't visible.

  3. #3
    Rawb is offline Expert
    Windows XP Access 2000
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    Assuming that all three (First, Middle, and Last Names) are being stuck into the same field, you can do the following:

    New Method:
    Code:
    =[FirstName] & IIf(Not IsNull([MiddleName]), " " & [MiddleName],"") & " " & [LastName]
    This one checks to see if the Field MiddleName is empty and, if it is, leaves it out (along with the extra space).

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

Similar Threads

  1. Saving Label on the Fly
    By frobro390 in forum Forms
    Replies: 3
    Last Post: 10-07-2010, 10:52 AM
  2. Formatting a label
    By swicklund in forum Reports
    Replies: 4
    Last Post: 08-24-2010, 03:27 PM
  3. label error
    By RedGoneWILD in forum Access
    Replies: 2
    Last Post: 08-04-2010, 07:19 AM
  4. Label in Report
    By devcon in forum Forms
    Replies: 3
    Last Post: 07-10-2010, 12:29 AM
  5. A Label in a Switchboard
    By Hawkx1 in forum Forms
    Replies: 1
    Last Post: 07-09-2008, 12:37 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