Jump to content
Sign in to follow this  
ratchley

Selection of records for mailing labels

Recommended Posts

I am VERY new at FileMaker (use version 4.0 for windows). I have a database which contains the fields "FirstName" and "SpouseName" and have created two different layouts for printing mailing labels.

Layout #1:

<<Firstname>> and <<SpouseName>> <<LastName>>

<<Address>>

<<City>>, <<State>> <<ZipCode>>

is designed for printing mailing labels for records which contain data in both the "FirstName" and "SpouseName" fields and contains the word "and" to seperate the two fields on the mailing label. (i.e. Linda and Randal McCurry)

Layout #2:

<<Firstname>> <<LastName>>

<<Address>>

<<City>>, <<State>> <<ZipCode>>

is designed to print labels a single individual (i.e. Robert McCallister)

I have worked for several hours to develope a script which would find records based on if the "SpouseName" field was empty or not and use the appropriate Layout to print the mailing labels.

If I use Layout #1 and print I get "Robert and McCallister" on the mailing labels for the records in which the <<SpouseName>> field is empty and if I use Layout #2 I am unable to create mailings labels addressing both parties.

I assume/believe that the "Perform Find" script step may be appropriate part of the desired script but (if this is the case), I am unable to figure out the appropriate If Then Else statements need to preform the desired result.

I would appriciate any help in achieving my desired result of finding records based on if the "SpouseName" field was empty or not and use the appropriate Layout to print the mailing labels.

Thanks,

Russell Atchley

ratchley@charter.net

Share this post


Link to post
Share on other sites

Why create 2 layouts?

Create one layout and create a calculated display name...

NameDisplay:

Case(isEmpty(SpouseName),FirstName & " " & LastName,FirstName & " and " & SpouseName & " " & Last Name)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.