Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Variable not found in report
Hello all.
I'm using a report which has a variable "lt2" to count the number of counties coming through. Under lt2's properties & calculations, reset: county and calculate = count. The same report is run from 2 different programs. When it runs from the first, everything if fine. When it runs from the second, it tells me "Variable "lt2" is not found. I put a "set step on" before the call to the report and checked all the variables being passed. The are all fine, including the county field. This part of the code is exactly the same as the other programs. This prg. is used if there is an error in the first program (or user error) and the user has to reprint.
Here is my code:
select a
index on dtoc(rev_date)+str(county,2)+lic_num to lifpt1
set safety on
SET INDEX TO LIFPT1
SET ORDER TO LIFPT1
SELECT LIFCNTY
SET ORDER TO COUNTY
SELECT A
t1b=flock()
set relation to substr(lic_num,1,3) into liflic
goto top
REPLACE ALL GIFT WITH LIFLIC->TYPE_CARD
SET RELATION TO COUNTY INTO LIFCNTY
goto top
set step on
report form liffrec TO preview
Thanks!
Sunshine
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement