SitesMasstec
Programmer
Hello colleagues!
I am trying to display in a report only records which have in the PSTAT field the content "PENDENTE". This field lenght is set to 10 characters.
The variable QualStatus is defined during run time, and the user typed "Pendente" to be stored in it.
The code is:
But the report shows all records (not only the records which has "PENDENTE" in the PSTAT field!
What am I missing?
Thank you.
I am trying to display in a report only records which have in the PSTAT field the content "PENDENTE". This field lenght is set to 10 characters.
The variable QualStatus is defined during run time, and the user typed "Pendente" to be stored in it.
The code is:
Code:
SELECT * FROM PLANPROD WHERE ALLTRIM(UPPER(PSTAT))=ALLTRIM(UPPER(QualStatus)) INTO CURSOR curPedProd
SELECT curPedProd
REPORT FORM RELACAOPEDPROD TO PRINTER PROMPT PREVIEW
But the report shows all records (not only the records which has "PENDENTE" in the PSTAT field!
What am I missing?
Thank you.