[EmData] Grouping fields inside fields on a phonebook

Emma Glaisher (Fourninety) emma.glaisher at fourninety.com
Sun Feb 24 08:11:05 EST 2008


Without some sample data I can't be sure, but have you tried this:

«if CATEGORY <> prev CATEGORY»«CATEGORY»
«endif»«if CITY <> prev CITY»«CITY» («CODE»)
«endif»«COMPANY»(tab)«TEL»
«ADDRESS»


Of course your data will need to be sorted by first Category, second City, before you import.

Your first statement only looked at 'Category' if the 'City' was new. So if the records went from a Baker in San Francisco to a Grocer in San Francisco, the change of category would be missed.

The second statement would repeat the Category heading every time, as far as I can see.

Sometimes it helps to draw a diagram, or write it down - I'm a word person rather than pictures, but probably most people would prefer a sort of flow diagram: 'If it's a new category we want to put that in, then if it's a new city we want to put that in, then we want company name and phone etc'.

Hope that helps...

- -
Fourninety Limited, a member company of the Media Square plc group. Registered in England No. 3737606. Registered address Clarence Mill, Clarence Road, Bollington, Cheshire. SK10 5JZ

Confidentiality Notice: The information in this document and any attachments are confidential. It is intended only for the use of the named recipient. If you are not the intended recipient please notify us  immediately and delete this document. The contents on this document must not be disclosed to any other person nor may any copies be taken. The views of the author may not represent the views of the Company.

Security Warning: This e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. All liability for any claims arising as a result of using this medium to transmit information by us or to us is excluded to the extent permitted  by law.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://emsoftware.com/pipermail/data-users/attachments/20080224/f408bf4d/attachment.html


More information about the Data-users mailing list