[EmData] Grouping fields inside fields on a phonebook
Guillermo J. Mendoza
memoxxxx at yahoo.com
Sun Feb 24 13:22:17 EST 2008
Thanks for your quick reply Emma,
I just tried your statement after resorting my data, and it seems better, but now, after a change of a category it dismisses the city if the records of the previous category are from only one particular city, and the records of the next category starts with records of that city. (see image http://tinyurl.com/2tzodh)
My goal is to achieve something like this image: http://tinyurl.com/2sts88 (manually made for reference)
Again, thanks in advance for your help...
PS: i'm resending this email in plain format and without attachments
Here's some sample data:
COMPANY CATEGORY ADD TEL CODE CITY
3d Marine Agentes Aduanales y Marítimos La Paragua 7416701 261 Maracaibo
A Navas & Co CA Agentes Aduanales y Marítimos Punto Fijo 2466970 269 Punto Fijo
A.C. uno.com, CA Aire Acondicionado Av. 4 entre calle 69 y 70 7984223 261 Maracaibo
A Quiroz y Asociados Asesores Económicos y Financieros Tierra Negra 7985840 261 Maracaibo
Aba Mercado de Capitales Bancos El Milagro 7230813 261 Maracaibo
7620 Inversiones CA Cerámicas para Decoración Tierra Negra 7976990 261 Maracaibo
3M Manufacturera Venezuela SA Cintas Diversas Tierra Negra 7979271 261 Maracaibo
A2 Software CA Computación Sta María 7592163 261 Maracaibo
AB Construcción CA Constructoras La Florida 2456920 269 Punto Fijo
A Que Tito SRL Electroauto Talleres y Repuestos Los Estanques 7358573 261 Maracaibo
AA & A Representaciones SA Empacaduras y Sellos Mecánicos para Automóviles Las Delicias 7592091 261 Maracaibo
AA & A Representaciones SRL Empacaduras y Sellos Mecánicos para Automóviles Las Delicias 7592091 261 Maracaibo
A1 Imagen Promocional CA Exposiciones y Eventos Especiales Indio Mara 7592953 261 Maracaibo
Abadia de Las Mercedes CA Funerarias Maracaibo 7931704 261 Maracaibo
1era Iglesia Presbiteriana Iglesias y Templos Religiosos Punto Fijo 2457445 269 Punto Fijo
A & Suplait Importadores y Exportadores Cabimas 2510855 264 Cabimas
2 Media Internet y Sala de Navegación Bella Vista 7926289 261 Maracaibo
A & E Bussiness CA Internet y Sala de Navegación Mara Nte 7578546 261 Maracaibo
925 Plata Joyerías El Milagro 7933446 261 Maracaibo
Abasto Depósito de Licores La Rosa Licores, Distribuidoras y Fábricas Dn Bosco 7938916 261 Maracaibo
Abastecimientos del Zulia CA Maquinarias y Equipos para Panaderías El Amparo 7563190 261 Maracaibo
A1 Imagen Promocional CA Organización de Fiestas y Eventos Indio Mara 7592953 261 Maracaibo
A.R.L. Perforaciones CA Perforación de Pozos Cl. 14 E/ Avs. 16 y 17, Sec. Sierra Maestra 7366272 261 Maracaibo
A.R.L. Perforaciones CA Perforación de Pozos Calle 14 entre Avenidas 16 y 17 7366272 261 Maracaibo
A. J Inversiones Col, CA Pinturas y Lacas Av. Miranda 7970590 261 Ciudad Ojeda
A J Inversiones CA Pinturas y Lacas Maracaibo 7781610 261 Maracaibo
A1 Imagen Promocional CA Publicidad Indio Mara 7592953 261 Maracaibo
99.7 La Mega Estación Radio Emisoras y Televisoras Bella Vista 7926941 261 Maracaibo
89.7 Fm Radio Emisoras y Televisoras Sta. Bárbara del Zulia 5554880 275 Sta. Bárbara del Zulia
1000 y Un Regalo Regalos Maracaibo 7232594 261 Maracaibo
A E Controles CA Repuestos para Aire Acondicionado y Refrigeración Maracaibo 7432355 261 Maracaibo
AA Cond-Serca Repuestos para Aire Acondicionado y Refrigeración Paraíso 7595609 261 Maracaibo
A H Instalaciones CA Seguridad Industrial Calle 71 7516335 261 Maracaibo
A H Instalaciones CA Seguridad, Sistemas y Equipos Calle 71 7516335 261 Maracaibo
Abasto Barrio Nuevo Supermercados Barrio Nuevo 3521142 267 Bachaquero
Abasto El Porvenir Supermercados Cabimas 2415983 264 Cabimas
Abasto El Inmigrante Supermercados Las Pulgas 7222648 261 Maracaibo
Abasto Imperial Supermercados Veritas 7983734 261 Maracaibo
Abasto La Bucanga Supermercados Mcdo De Las Pulgas 7224472 261 Maracaibo
Abasto La Firma de Oro Supermercados Maracaibo 7239053 261 Maracaibo
Abasto La Fuente Supermercados Dr Quintero 7985681 261 Maracaibo
Abasto La Garza Blanca Supermercados 20 de Mayo 5551617 275 Sta. Bárbara del Zulia
Aamovilnet Telecomunicaciones Maracaibo 7985284 261 Maracaibo
A & L Distribuidores CA Teléfonos Celulares, Accesorios Maracaibo 7213321 261 Maracaibo
A G & T CA Topografos Km 3 via el Mojan 7414277 261 Maracaibo
A G & T CA Topografos Km 3 via el Mojan 7414277 261 Maracaibo
A/C Zulianisima de Transporte Transporte Av. 2 El Milagro 6629091 265 Maracaibo
Abasto Centro Norte Víveres Maracaibo 7932784 261 Maracaibo
5 Estrellas CA Zapaterías Punto Fijo 2470308 269 Punto Fijo
----- Mensaje original ----
De: Emma Glaisher (Fourninety) <emma.glaisher at fourninety.com>
Para: Guillermo J. Mendoza <memoxxxx at yahoo.com>; data-users at emsoftware.com
Enviado: domingo, 24 de febrero, 2008 8:41:05
Asunto: RE: [EmData] Grouping fields inside fields on a phonebook
RE: [EmData] Grouping fields inside fields on a phonebook 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.
____________________________________________________________________________________
¡Capacidad ilimitada de almacenamiento en tu correo!
No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:
http://correo.espanol.yahoo.com/
More information about the Data-users
mailing list