y no has probado con SUBSTR(CAMPO, 5, 2)?? Gerardo Santillana IT Department Delphi Mechatronic Systems US Ph: (956) 554 5832 MX Ph: (868) 812 81 63/64/65 Ext 5832 Pager: (956) 768 1048 Mobil E-mail [EMAIL PROTECTED] e-mail [EMAIL PROTECTED]
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Diego Garulo Sent: Friday, February 20, 2004 9:49 AM To: [EMAIL PROTECTED] Subject: Pregunta SQL Buenas tardes compa�eros foreros. Necesito enviar desde un programa en VisualBasic una sentencia SQL al 400 pero seleccionando una parte de un campo, para ello ejecuto la siguiente sentencia SQL: sSql = "Select [los campos que necesito] from BIBLIOTECA.FICHERO where (MID(CAMPO, 5, 2)) = " & parm1 Y me da fallo en la opci�n MID. Tambi�n he probado con (MDI([BIBLIOTECA.FICHERO]![CAMPO], 5, 2)), pero con el mismo resultado. Necesitar�a coger solo la informaci�n comprendida entre los caracteres 5 y 6 de ese campo que es de 8 caracteres. Si alguien puede ayudarme se lo agradecer�a enormemente. Un saludo y gracias por adelantado. _____________________________________________________ Forum.HELP400 es un servicio m�s de NEWS/400. � Publicaciones Help400, S.L. - Todos los derechos reservados http://www.help400.es _____________________________________________________ Para darte de baja, env�a el mensaje resultante de pulsar mailto:[EMAIL PROTECTED] **************************************************************************************** Note: The information contained in this message may be privileged and confidential and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. **************************************************************************************** _____________________________________________________ Forum.HELP400 es un servicio m�s de NEWS/400. � Publicaciones Help400, S.L. - Todos los derechos reservados http://www.help400.es _____________________________________________________ Para darte de baja, env�a el mensaje resultante de pulsar mailto:[EMAIL PROTECTED]
