MsPepperMintUSA
Programmer
Hello All:
My eyes are tired and I have seacrhing through many threads for any possible solution. I have tried using the totaling FAQ, but was not successful. The totaling continues to count every new page for that record as 1. The built-in function PageNumber tracks the page number correctly, but I have not been successful using this function to create a flag identifying when the first page of the next Record would appear.
What I want to do is print the RecordID for the first page of the Record details and on subsequent pages of the same Record Details print the word Continue.
The equation below works perfectly for the first record, but then always prints "Continue" see equation 1.
I was trying to set the curRecord and PrvRecord and assign strContinue, but can not assign multiple values in the if-then-else conditional statement. see equation 2
Any suggestions/assistance in assigning the values to variable in the following equation would be greatly appreciated.
Equation 1
whileprintingrecords;
Shared StringVar strContinue;
Shared NumberVar curRecordID;
Shared NumberVar nxtRecordID;
if OnFirstRecord and PageNumber = 1 then
strContinue := 'Record:' + {record.rec_id}
Else
if {record.rec_id} = next({record.rec_id}) then
strContinue := 'Record:' +{record.rec_id}
Else
strContinue := 'Continued'
Equation 2
whileprintingrecords;
Shared StringVar strContinue;
Shared NumberVar curRecordID;
Shared NumberVar nxtRecordID;
if OnFirstRecord and PageNumber = 1 then
curRecordID := {record.rec_id};
nxtRecordID := next({record.rec_id});
strContinue := 'Lease:' + {record.rec_id};
Else
if curRecordID = nxtRecordID then
curRecordID :={record.rec_id};
nxtRecordID := next({record.rec_id});
strContinue := Record:' +{record.rec_id}
Else
strContinue := 'Continued'
Thanks In Advance
My eyes are tired and I have seacrhing through many threads for any possible solution. I have tried using the totaling FAQ, but was not successful. The totaling continues to count every new page for that record as 1. The built-in function PageNumber tracks the page number correctly, but I have not been successful using this function to create a flag identifying when the first page of the next Record would appear.
What I want to do is print the RecordID for the first page of the Record details and on subsequent pages of the same Record Details print the word Continue.
The equation below works perfectly for the first record, but then always prints "Continue" see equation 1.
I was trying to set the curRecord and PrvRecord and assign strContinue, but can not assign multiple values in the if-then-else conditional statement. see equation 2
Any suggestions/assistance in assigning the values to variable in the following equation would be greatly appreciated.
Equation 1
whileprintingrecords;
Shared StringVar strContinue;
Shared NumberVar curRecordID;
Shared NumberVar nxtRecordID;
if OnFirstRecord and PageNumber = 1 then
strContinue := 'Record:' + {record.rec_id}
Else
if {record.rec_id} = next({record.rec_id}) then
strContinue := 'Record:' +{record.rec_id}
Else
strContinue := 'Continued'
Equation 2
whileprintingrecords;
Shared StringVar strContinue;
Shared NumberVar curRecordID;
Shared NumberVar nxtRecordID;
if OnFirstRecord and PageNumber = 1 then
curRecordID := {record.rec_id};
nxtRecordID := next({record.rec_id});
strContinue := 'Lease:' + {record.rec_id};
Else
if curRecordID = nxtRecordID then
curRecordID :={record.rec_id};
nxtRecordID := next({record.rec_id});
strContinue := Record:' +{record.rec_id}
Else
strContinue := 'Continued'
Thanks In Advance