on 09-24-2010 10:02 PM
Colegas,
Tengo algo muy sencillo pero no lo logro aterrizar.
En la orden de compra creé dos campos de usuario: Cliente y Dirección Cliente.
En el campo de cliente es para seleccionar el nombre del cliente, pero en el campo dirección cliente quiero que me salga automáticamente la dirección del cliente que seleccioné en el campo cliente.
qué es lo que estoy haciendo mal en la consulta?
SELECT T0.[U_Direccion] FROM OCRD T0 INNER JOIN OPOR T1 ON T0.CardCode = T1.CardCode WHERE T0.[CardType] = 'c' and T0.[CardName] = $[OPOR.U_NombreCliente]
Saludos!
Hola...
Pruebala así...
SELECT T0.U_Direccion FROM OCRD T0 WHERE T0.CardType = 'c' and T0.CardName = $[OPOR.U_NombreCliente]
Espero te sea de ayuda
Saludos Cordiales,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hola, intenta con
SELECT U_Direccion FROM OCRD where cardcode in (select $[OPOR.cardcode])
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.