We recently moved our courthouse and two of the changes that were made during the move was an upgrade to IBM AS400 server ISeries and Lotus Notes 6. I have a Notes application that allows interviews to be recorded and stored. One of the process in this application is the ability to duplicate a previous interview (because unfortunately we do have repeat offenders and instead of filling out an entire interview again, the program copies most of the information from the first interview into the second to save time). However, with the upgrade to version 6 this process no longer works properly.
The offending line of code is the Loop Until:
Now when I step through this code in the debugger IT WORKS FINE!!!!! When I let the code run without debugging I get an error:
I have recompiled the Lotus Script in Designer. I have added a If not result.IsEndOfData before the loop and I STILL get the error.
Anyone have any ideas?
Thanks,
Leslie
The offending line of code is the Loop Until:
Code:
If disct = "" Then
qry.SQL = "SELECT DEFNAM, DEFADD, DEFCTY, DEFSTT, DEFZCD, DEFSEX, DEFALA, DEFAGE, DEFDTOB, DEFSSN, BOOKING#, CMLIB.CMPCHGMF.CHGSEQ, CHGDSS, CHGABV FROM CMLIB.CMPDEFMF INNER JOIN CMLIB.CMPCHGMF ON CMLIB.CMPDEFMF.CASPRE = CMLIB.CMPCHGMF.CASPRE AND CMLIB.CMPDEFMF.CASNUM = CMLIB.CMPCHGMF.CASNUM INNER JOIN CMLIB.CMPCHGTP ON CMLIB.CMPCHGMF.CHGTYP = CMLIB.CMPCHGTP.CHGTYP WHERE (CMLIB.CMPDEFMF.CASPRE ='" + pfx + "' AND CMLIB.CMPDEFMF.CASNUM=" + nbr +") "
result.Execute
Do
result.NextRow
For i = 13 To 14
chgs = chgs & " " & result.GetValue(i)
Next
Loop Until result.IsEndOfData
Now when I step through this code in the debugger IT WORKS FINE!!!!! When I let the code run without debugging I get an error:
ERROR said:LSO The end of data has been reached.
I have recompiled the Lotus Script in Designer. I have added a If not result.IsEndOfData before the loop and I STILL get the error.
Anyone have any ideas?
Thanks,
Leslie