R
RDub
I have a complex report that needs to print a series of strings based on
dozens of Boolean Columns in the table the report is based on (Yea I know
all about data normalization, and I know this is wrong, but this is the data
the customer supplies).
The plan was to use some code in the Detail OnFormat event to determine
which strings need to be printed. However I am unable to refer to any of
the columns in the reports underlying recordset. I get a Error 2465
"ProgramName can't find the field 'afieldname' referred to in your
expression" when I try stuff like: Me!ColumnName or Me("ColumnName"). In
fact I can not even refer to the reports recordset object at all. Something
like Me.Recordset.ColumName will not even compile.
So what's up? It looks like a Reports "Me" reference can only "see"
objects that have been actually created on the report. I would hate to have
to put 4 dozen invisible check boxes on the report just to make this happen.
Aside from fixing the bad table design, does anyone have another workaround.
Ron W
dozens of Boolean Columns in the table the report is based on (Yea I know
all about data normalization, and I know this is wrong, but this is the data
the customer supplies).
The plan was to use some code in the Detail OnFormat event to determine
which strings need to be printed. However I am unable to refer to any of
the columns in the reports underlying recordset. I get a Error 2465
"ProgramName can't find the field 'afieldname' referred to in your
expression" when I try stuff like: Me!ColumnName or Me("ColumnName"). In
fact I can not even refer to the reports recordset object at all. Something
like Me.Recordset.ColumName will not even compile.
So what's up? It looks like a Reports "Me" reference can only "see"
objects that have been actually created on the report. I would hate to have
to put 4 dozen invisible check boxes on the report just to make this happen.
Aside from fixing the bad table design, does anyone have another workaround.
Ron W