General information
Category:
Reports & Report designer
Title:
My preview switches select areas
Hello.
I have a report which is previewed from a form with a grid on it. The method of the form which prints the report is as follows:
LOCAL lnSelect
lnSelect = SELECT()
SELECT * FROM test INTO CURSOR rptTemp
REPORT FORM test PREVIEW
SELECT (lnSelect)
The report TEST.FRX has the following in it:
A text field which displays ALIAS() in the detail band.
If there are 6 records selected, the output looks like:
RPTTEMP
RPTTEMP
RPTTEMP
RPTTEMP
RPTTEMP
RPTTEMP
This is correct.
When the user presses the page-down key, the page number stays at 1, but the report says:
LV_TRAD
LV_TRAD
As I said, there is a grid on the form which is used to run the report preview. As you may have surmised, the recordsource of the grid is 'LV_TRAD'.
Sometimes, if there are a lot of records in rptTemp, the report will look like:
RPTTEMP
RPTTEMP
RPTTEMP
RPTTEMP
RPTTEMP
RPTTEMP
RPTTEMP
RPTTEMP
RPTTEMP
RPTTEMP
LV_TRAD
LV_TRAD
Any ideas on what would cause this odd and intermittent (though usually reproducible) behavior?
- George [Perplexed]
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only