Hi All;
I can't figure this out.
I'm using a 'select' statement based on a table, zpeople, to read records into a cursor. The cursor is then checked for a record count > 0. If there are records, then 'report form...' is used to print records. The initial problem was that printing directly from the cursor occasionally would fail with 'variable..not found'. So I made a view out of the select statement and placed it in the datasession of the report. Now occasionally--not always--upon return from the report generator, 'report form...', the zpeople table queried by the view is closed, whereas it was open and 'used' before starting the 'report form..' statement.
zPeople is NOT in the dataenvironment of the report but the dataenvironment is not private...Should it be? Anybody know why the 'report form...' is closing the table, zpeople ?
Any help is appreciated,
Thanks,
Alan
I can't figure this out.
I'm using a 'select' statement based on a table, zpeople, to read records into a cursor. The cursor is then checked for a record count > 0. If there are records, then 'report form...' is used to print records. The initial problem was that printing directly from the cursor occasionally would fail with 'variable..not found'. So I made a view out of the select statement and placed it in the datasession of the report. Now occasionally--not always--upon return from the report generator, 'report form...', the zpeople table queried by the view is closed, whereas it was open and 'used' before starting the 'report form..' statement.
zPeople is NOT in the dataenvironment of the report but the dataenvironment is not private...Should it be? Anybody know why the 'report form...' is closing the table, zpeople ?
Any help is appreciated,
Thanks,
Alan