Crystal Report - parar parametros SQL a crystal reports 9

 
Vista:

parar parametros SQL a crystal reports 9

Publicado por Jordi (1 intervención) el 29/07/2008 13:30:36
Hola,
quiero pasar una consulta SQL al informe para que me realice un filtrado por el NIF.
Tengo este código introducido, pero al mostrar el informe me aparecen todos los campos.
¿Que estoy haciendo mal?
¿Tenéis algún ejemplo a mano?

CrystalReport1.SQLQueryString = "SELECT PlacesInserso.Nom, PlacesInserso.Cognom1, PlacesInserso.Cognom2, PlacesInserso.DNI, PlacesInserso.NomC, PlacesInserso.Cognom1C, PlacesInserso.Cognom2C, PlacesInserso.DNIC, PlacesInserso.NomF, PlacesInserso.Cognom1F, PlacesInserso.Cognom2F, PlacesInserso.DNIF, PlacesInserso.IDVIATGE, PlacesInserso.[nombre places], PlacesInserso.telefon, PlacesInserso.poblacio, LlocViatge.LlocViatge, LlocViatge.Durada, LlocViatge.Preupersona, LlocViatge.Transport, LlocViatge.idviatge, LlocViatge.limitingres, LlocViatge.hotel, LlocViatge.datasortida, LlocViatge.[Nombre de places] FROM LlocViatge INNER JOIN PlacesInserso ON LlocViatge.idviatge = PlacesInserso.IDVIATGE WHERE (((PlacesInserso.DNI)='" & NIF & "'))"

Form1.Show

Muchas gracias.

Saludos,

Jordi.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:parar parametros SQL a crystal reports 9

Publicado por VICTOR (3 intervenciones) el 26/08/2008 00:50:20
FACIL TIENES QUE ESPECIFICAR TUS DATOS QUE DESES MOSTRAR COMO UN WHERE O OTRA SENTENCIA ESTO TE AYUDARA A QUE ELIJAS LOS CAMPOS ADECUADOS ,BASICO DE SQL
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar