FoxPro/Visual FoxPro - IMPRIMIR UN SOLO REGISTRO DE UNA TABLA

 
Vista:

IMPRIMIR UN SOLO REGISTRO DE UNA TABLA

Publicado por ADA (26 intervenciones) el 02/03/2007 23:29:07
AMIGOS... BUENAS TARDES

NECESITO DE SU AYUDA... ESTOY HACIENDO UN INFORME PERO SOLO QUIERO IMPRIMIR EL REGISTRO DE UNA SOLA FACTURA... EN EL FORMULARIO TENGO UNA CAJA DE TEXTO DONDE CAPTURO EL NUMERO DE LA FACTURA A IMPRIMIR, Y UN BOTON DONDE TENGO PROGRMADO ESTO....

nufa = this.texto1.value
select factura
SET FILTER TO num_fact = nufa
REPORT FORM Myreporte TO PRINTER PROMPT PREVIEW

PERO... NO ME FUNCIONA.. NO ME MUESTRA NADA,,, SI LE QUITO EL FILTRO ME ARROJA TODOS LOS REGISTROS QUE TENGO EN LA TABLA FACTURA...
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
sin imagen de perfil

RE:IMPRIMIR UN SOLO REGISTRO DE UNA TABLA

Publicado por Ernesto Hernandez (4623 intervenciones) el 02/03/2007 23:36:54
nufa = this.texto1.value OJO asi --->> nufa = thisform.texto1.value
select factura
SET FILTER TO num_fact = nufa
REPORT FORM Myreporte TO PRINTER PROMPT PREVIEW


SET FILTER TO factura.num_fact = nufa
o mejor

select factura
SELEC * FROM factura WHERE num_fact = Thisform.Texto1.Value INTO CURSOR Micursor

y utiliza el cursor para llenar el reporte

REPORT FROM mYrEPORTE TO PRINTER

Suerte
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