Précédent   Forum du club des développeurs et IT Pro > Bases de données > MySQL
MySQL Forum d'entraide MySQL. Avant de poster -> FAQ MySQL, Tutoriels MySQL
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse
 
Outils de la discussion
Publicité
'
Vieux 08/01/2013, 11h20   #1
superthx
Membre à l'essai
 
Inscription : juillet 2003
Messages : 87
Détails du profil
Informations forums :
Inscription : juillet 2003
Messages : 87
Points : 22
Points : 22
Par défaut Difficultée Creer Report MySQL

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

Code :
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].[] = [Produccion].[]
Cette BD etait au debut cree sous access.

Sous Access ODBC ma requete etait sous cette forme.
Code :
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;
Dans access il me suffisait de mettre le N_Lote pouir qu'il me resorte tout.
C'est pour cela que j'ai
Code :
HAVING (((Produccion.[Nº Lote Cliente]) LIKE [Introducir Nº Lote Cliente]
.

Merci de m'aider. Car la je tourne depuis une semaine sans espoir.
superthx est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse
Outils de la discussion

Navigation rapide


Fuseau horaire GMT +2. Il est actuellement 16h54.


 
 
 
 
Partenaires

Hébergement Web