I have a database, it contains one table 2 views 2 reports. In one report I have this procedure:
Procedure Asiancount
Local LnAsian
LnAsian = 0
scan for race = "A"
LnAsian = LnAsian + 1
endscan
return LnAsian
Endproc
Procedure Blackcount
Local LnBlack
LnBlack = 0
scan for race = "B"
LnBlack = LnBlack + 1
endscan
return LnBlack
Endproc
Procedure Hispaniccount
Local LnHispanic
LnHispanic = 0
scan for race = "H"
LnHispanic = LnHispanicHispanic + 1
endscan
return LnHispanic
Endproc
Procedure Indiancount
Local LnIndian
LnIndian= 0
scan for race = "AI"
LnIndian = LnIndian + 1
endscan
return LnIndian
Endproc
Procedure Othercount
Local LnOther
LnOther= 0
scan for race = "O"
LnOther = LnOther + 1
endscan
return LnOther
Endproc
Procedure Tcount
Local LnTotal
LnTotal= 0
scan for race != " "
LnTotal = LnTotal + 1
endscan
return LnTotal
Endproc
Procedure Whitecount
Local LnWhite
LnWhite = 0
scan for race = "W"
LnWhite = LnWhite + 1
endscan
return LnWhite
Endproc
But when I run it or try to Preview the report I get this error: 'Blackcount.prg' does not exist!
Please help this is driving me nuts!
Thanks
When you sow a thought, you reap an act. When you sow an act, you reap a habit. When you sow a habit, you reap a character. When you sow a character, you reap a destiny.
Procedure Asiancount
Local LnAsian
LnAsian = 0
scan for race = "A"
LnAsian = LnAsian + 1
endscan
return LnAsian
Endproc
Procedure Blackcount
Local LnBlack
LnBlack = 0
scan for race = "B"
LnBlack = LnBlack + 1
endscan
return LnBlack
Endproc
Procedure Hispaniccount
Local LnHispanic
LnHispanic = 0
scan for race = "H"
LnHispanic = LnHispanicHispanic + 1
endscan
return LnHispanic
Endproc
Procedure Indiancount
Local LnIndian
LnIndian= 0
scan for race = "AI"
LnIndian = LnIndian + 1
endscan
return LnIndian
Endproc
Procedure Othercount
Local LnOther
LnOther= 0
scan for race = "O"
LnOther = LnOther + 1
endscan
return LnOther
Endproc
Procedure Tcount
Local LnTotal
LnTotal= 0
scan for race != " "
LnTotal = LnTotal + 1
endscan
return LnTotal
Endproc
Procedure Whitecount
Local LnWhite
LnWhite = 0
scan for race = "W"
LnWhite = LnWhite + 1
endscan
return LnWhite
Endproc
But when I run it or try to Preview the report I get this error: 'Blackcount.prg' does not exist!
Please help this is driving me nuts!
Thanks
When you sow a thought, you reap an act. When you sow an act, you reap a habit. When you sow a habit, you reap a character. When you sow a character, you reap a destiny.