JUNTAR TABLAS EN UN GRID

16/07/2004 - 00:24 por Benzon H | Informe spam
BUENAS, TENGO DOS TABLAS EN UNA TENGO LOS ISGUIENTES CAMPOS
CVE
NOM
DIR
TEL
FALTA

EN LA OTRA TENGO:
CVE
CVEART
PRECIO
CANT
FCOMPRA

QUIERO JUNTAR AMBAS EN UN GRID DE TAL MANERA QUE SE MUESTRE EL
NOMBRE DEL CLIENTE DE LA PRIMER TABLA Y LOS DEMAS DATOS DE LA SEGUNDA TODO
ESTO EN UN GRID, LOS CAMPOS INDICES SON CVE COMO PRINCIPAL EN LA PRIMER
TABLA Y CVE COMO NORMAL EN LA SEGUNDA, ALGUIEN ME PUEDE AYUDAR, GRACIAS.

-
PortalFox :: Nada corre como un zorr
http://www.portalfox.co

PortalFox - NNTP Forum Gatewa

Preguntas similare

Leer las respuestas

#1 Antonio Lopez
16/07/2004 - 08:02 | Informe spam
Crea una vista con los campos que quieras de las dos tablas
"Benzon H" escribió en el mensaje
news:
BUENAS, TENGO DOS TABLAS EN UNA TENGO LOS ISGUIENTES CAMPOS
CVE
NOM
DIR
TEL
FALTA

EN LA OTRA TENGO:
CVE
CVEART
PRECIO
CANT
FCOMPRA

QUIERO JUNTAR AMBAS EN UN GRID DE TAL MANERA QUE SE MUESTRE EL
NOMBRE DEL CLIENTE DE LA PRIMER TABLA Y LOS DEMAS DATOS DE LA SEGUNDA TODO
ESTO EN UN GRID, LOS CAMPOS INDICES SON CVE COMO PRINCIPAL EN LA PRIMER
TABLA Y CVE COMO NORMAL EN LA SEGUNDA, ALGUIEN ME PUEDE AYUDAR, GRACIAS.


PortalFox :: Nada corre como un zorro
http://www.portalfox.com

PortalFox - NNTP Forum Gateway
Respuesta Responder a este mensaje
#2 Ana María Bisbé York
16/07/2004 - 12:55 | Informe spam
Hola:

Por favor, intenta evitar las mayúsculas, se considera que gritas.

Tienes en tu entorno de datos dos tablas cliente y compras, que están
relacionadas por el campo CVE.

grdCompras.RecordSource = Compras
grdCompras.Column1.ControlSource = Cliente.Nom
grdCompras.Column2.ControlSource = Compras.Cveart
grdCompras.Column3.ControlSource = Compras.Precio

etc etc

Es decir, das a cada columna el control source del alias.campo necesario.

Suerte !!!!


Saludos,

Ana
www.amby.net

"Benzon H" escribió en el mensaje
news:
BUENAS, TENGO DOS TABLAS EN UNA TENGO LOS ISGUIENTES CAMPOS
CVE
NOM
DIR
TEL
FALTA

EN LA OTRA TENGO:
CVE
CVEART
PRECIO
CANT
FCOMPRA

QUIERO JUNTAR AMBAS EN UN GRID DE TAL MANERA QUE SE MUESTRE EL
NOMBRE DEL CLIENTE DE LA PRIMER TABLA Y LOS DEMAS DATOS DE LA SEGUNDA TODO
ESTO EN UN GRID, LOS CAMPOS INDICES SON CVE COMO PRINCIPAL EN LA PRIMER
TABLA Y CVE COMO NORMAL EN LA SEGUNDA, ALGUIEN ME PUEDE AYUDAR, GRACIAS.


PortalFox :: Nada corre como un zorro
http://www.portalfox.com

PortalFox - NNTP Forum Gateway
email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida