Bonjour,
J'essai de créer un état mais sans succee.
J'utilise pour cela PebbleReports pour créer cela.
J'ai 2 tables "Lote Cliente" et "Produccion".
"Lote Cliente" contient:
Cliente,Fecha Envio, FechaPreparacion, N_Lote
"Produccion" contient:
Fecha, Formato, Marcado, Modelo, Nave, Nº Loe Cliente, Nº Lote Interno, NPalet, Pedido, Piezas, Producto, Referencia, Seleccion
Dans PebbleReports j'ai mis dans Groups N_Lote et Cliente. Dans Colums j'ai mis par exemple NPalet et Piezas
En exécutant il m'affiche bien le N_Lote et Cliente. Par contre pour N_Palet et Piezas c'est aléatoire.
Je cherche a faire apparaître N_Lote et Cliente, ainsi que en dessous les lignes correspondante de Produccion. Dans la table Produccion NºLoteCliente correspond au N_Lote de la table Lote Cliente.
J'ai ceci pour PebbleReports
Cette BD etait au debut cree sous access.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 select [Lote Cliente].[Cliente] [Cliente], [Lote Cliente].[Fecha Envio] [FechaEnvio], [Lote Cliente].[Fecha Preparacion] [FechaPreparacion], [Lote Cliente].[N-Lote] [N_Lote], [Produccion].[Espesor Nominal] [EspesorNominal], [Produccion].[Fecha] [Fecha], [Produccion].[Formato] [Formato], [Produccion].[Marcado] [Marcado], [Produccion].[Modelo] [Modelo], [Produccion].[Nave] [Nave], [Produccion].[Nº Lote Cliente] [NºLoteCliente], [Produccion].[Nº Lote Interno] [NºLoteInterno], [Produccion].[N° Palet] [NPalet], [Produccion].[Pedido] [Pedido], [Produccion].[Piezas] [Piezas], [Produccion].[Producto] [Producto], [Produccion].[Referencia] [Referencia], [Produccion].[Seleccion] [Seleccion] from [dbo].[Lote Cliente] [Lote Cliente] left outer join [dbo].[Produccion] [Produccion] on [Lote Cliente].[N°] = [Produccion].[N°]
Sous Access ODBC ma requete etait sous cette forme.
Dans access il me suffisait de mettre le N_Lote pouir qu'il me resorte tout.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 SELECT Produccion.Nave, Produccion.Fecha, Produccion.[N° Palet], Produccion.[Nº Lote Cliente], Produccion.Modelo, Produccion.Seleccion, Produccion.Producto, Produccion.Piezas, Produccion.Formato, [dbo_Lote Cliente].Cliente, [dbo_Lote Cliente].[Nº Pedido], [dbo_Lote Cliente].[Fecha Envio], Produccion.[Nº Lote Interno], Produccion.[Espesor Nominal], Var([dbo_Lote Cliente].Nota) AS VarDeNota FROM Produccion INNER JOIN [dbo_Lote Cliente] ON Produccion.[Nº Lote Cliente] = [dbo_Lote Cliente].[N-Lote] GROUP BY Produccion.Nave, Produccion.Fecha, Produccion.[N° Palet], Produccion.[Nº Lote Cliente], Produccion.Modelo, Produccion.Seleccion, Produccion.Producto, Produccion.Piezas, Produccion.Formato, [dbo_Lote Cliente].Cliente, [dbo_Lote Cliente].[Nº Pedido], [dbo_Lote Cliente].[Fecha Envio], Produccion.[Nº Lote Interno], Produccion.[Espesor Nominal] HAVING (((Produccion.[Nº Lote Cliente]) Like [Introducir Nº Lote Cliente])) ORDER BY Produccion.Modelo DESC , Produccion.Seleccion DESC , Produccion.Producto, Produccion.Formato DESC;
C'est pour cela que j'ai.
Code : Sélectionner tout - Visualiser dans une fenêtre à part HAVING (((Produccion.[Nº Lote Cliente]) Like [Introducir Nº Lote Cliente]
Merci de m'aider. Car la je tourne depuis une semaine sans espoir.
Partager