JmichaelSR
Programmer
I am a COBOL mainframe programmer with 35 years of experience who has been given the task of generating some reports using FoxPro 2.5. I am totally new to FoxPro and am hoping there is someone out there who can show me the error of my ways.
The Problem:
I am using the FoxPro routine 'RQBE' to generate
a very simple report. I am accessing two DBF files and
extracting from them only six fields with which to
populate a report. One of the six fields printed,
'Sched.location', does not reflect the information
expected. ALL RECORDS printed reflect the
Sched.location value of the FIRST RECORD IN THE SCHED
FILE. All other information is being pulled from the
correct records.
Please take a look at the code listed below.
What is causing the SCHED.LOCATION to always be taken
from the first record of the Sched.dbf file? What
should I do to correct?
Any help or suggestions you can give will be greatly
appreciated. Thanks in advance.
The Code:
SELECT Crse.crs_name, Sched.year, Sched.county, Sched.dates,;
Sched.location, Sched.month;
FROM Crse, Sched;
WHERE Sched.course_id = Crse.course_id;
AND Sched.notice = CTOD("02/23/04");
INTO CURSOR Notice3q
REPORT FORM notice3.frx TO PRINTER NOCONSOLE
Mike Clark
Programmer/Analyst
Mississippi State Fire Academy
The Problem:
I am using the FoxPro routine 'RQBE' to generate
a very simple report. I am accessing two DBF files and
extracting from them only six fields with which to
populate a report. One of the six fields printed,
'Sched.location', does not reflect the information
expected. ALL RECORDS printed reflect the
Sched.location value of the FIRST RECORD IN THE SCHED
FILE. All other information is being pulled from the
correct records.
Please take a look at the code listed below.
What is causing the SCHED.LOCATION to always be taken
from the first record of the Sched.dbf file? What
should I do to correct?
Any help or suggestions you can give will be greatly
appreciated. Thanks in advance.
The Code:
SELECT Crse.crs_name, Sched.year, Sched.county, Sched.dates,;
Sched.location, Sched.month;
FROM Crse, Sched;
WHERE Sched.course_id = Crse.course_id;
AND Sched.notice = CTOD("02/23/04");
INTO CURSOR Notice3q
REPORT FORM notice3.frx TO PRINTER NOCONSOLE
Mike Clark
Programmer/Analyst
Mississippi State Fire Academy