December 16, 200124 yr 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]
December 16, 200124 yr Why create 2 layouts? Create one layout and create a calculated display name... NameDisplay: Case(isEmpty(SpouseName),FirstName & " " & LastName,FirstName & " and " & SpouseName & " " & Last Name)
December 16, 200124 yr No double posting....Topic closed.... http://www.fmforums.com/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=15&t=000933
Create an account or sign in to comment