dbTalk Databases Forums  

Re: Sort Question

comp.databases.filemaker comp.databases.filemaker


Discuss Re: Sort Question in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Henk B
 
Posts: n/a

Default Re: Sort Question - 08-08-2003 , 06:17 PM






<Spam (AT) markris (DOT) com> wrote:

Quote:
I have a file of names & Business names that when I sort them they sort
properly. My question or problem is when I sort those names that are not
associated with a business name always are at the top of the list which is
correct alphabetical, I would like them not to show. I think it can be
done using "ISEMPTY(file)" thru an "IF" statement but I don't know how to
tell it if the field of business is empty not to list it. I may also be
wrong!

FYI Using FileMaker Pro 6.2 - PC Windows 2000 Operating System only.

Thank You
Charlie
Hi Charlie,

If you want to display a list with some records not showing, then first
perform a find, then sort the found set.

--
Henk B


Reply With Quote
  #2  
Old   
MB
 
Posts: n/a

Default Re: Sort Question - 08-10-2003 , 12:32 PM






<Spam (AT) markris (DOT) com> wrote:

Quote:
I have a file of names & Business names that when I sort them they sort
properly. My question or problem is when I sort those names that are not
associated with a business name always are at the top of the list which is
correct alphabetical, I would like them not to show. I think it can be
done using "ISEMPTY(file)" thru an "IF" statement but I don't know how to
tell it if the field of business is empty not to list it. I may also be
wrong!

You need a Sort field. This is a calculation field in which you
manipulate the name how you want, and then you sort on this field. It's
only used for sorting. For instance, when sorting surnames, I always use
a Sortfield so that I can change Mc to Mac so that McKenzie and
MacKenzie will sort together. No-one ever sees this field.

Your calculation for the Sort field should be something like:

If(IsEmpty(businessname), "zzz", businessname)

What this does is give you a field in which you get the businessname if
it exists, otherwise, zzz. Now sort on Sortfield followed by Fullname or
surname (to get the several people in each business sorted properly) and
you will get all the businesses at the top and all the ZZZ people at the
bottom.

Maire Black



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.