K
Kim
I develop and test in Access 2002 But have an issue that occurs only on SOME
computers using Access 2003.
I have a Report with a sub report on the report header. In the On Format
event of the report header I check for data in the sub report by checking on
Text box for data. If there is none I set the subreport visible property
false.
The problem is on some computers I get an "invalid reference to a
form/report" when I try to reference this field. This is interpreted as a
false and the sub report is set invisible even though there is data.
This code has been working fine for years, all the way back to Access 97.
I thought it was a version bug - It worked OK on machines using Access
11.5xx.xxx but not 11.6xx.xxx. But a 'helper' upgrded the the 11.5s to 11.6
and they still worked OK.
Is this a known issue? As I said this has worked fine for years. I do it
this way and in the on format rather than on print becuase we have some users
with a lot of data and we are doing a LOT of lookups in on format and I do
not want this event firing more than once. The report is slow enough already
as it is gathering data from up to 20 tables many with record counts in the
100000+ range with joins to equally large tables.
Thanks for your help.
Kim
computers using Access 2003.
I have a Report with a sub report on the report header. In the On Format
event of the report header I check for data in the sub report by checking on
Text box for data. If there is none I set the subreport visible property
false.
The problem is on some computers I get an "invalid reference to a
form/report" when I try to reference this field. This is interpreted as a
false and the sub report is set invisible even though there is data.
This code has been working fine for years, all the way back to Access 97.
I thought it was a version bug - It worked OK on machines using Access
11.5xx.xxx but not 11.6xx.xxx. But a 'helper' upgrded the the 11.5s to 11.6
and they still worked OK.
Is this a known issue? As I said this has worked fine for years. I do it
this way and in the on format rather than on print becuase we have some users
with a lot of data and we are doing a LOT of lookups in on format and I do
not want this event firing more than once. The report is slow enough already
as it is gathering data from up to 20 tables many with record counts in the
100000+ range with joins to equally large tables.
Thanks for your help.
Kim