Jump to content

Selection of records for mailing labels


ratchley
 Share

This topic is 7249 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

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

[email protected]

Link to comment
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)

Link to comment
Share on other sites

This topic is 7249 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

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