This is an Access 2000 ADP & sql DB, report is being run by a docmd.openreport in vb6.
I have a report which has column headings in a group header. I want to change these column headings based on the value of the group.
Lets assume I have a group named "state" whose values can be "A" or "B". While the group value is "A", I want the column heading to be "Received", else "Delivered".
I put a textbox in the group header with the following as a control source:
=if([state]="A", "Received", "Delivered")
The report fails with the Visual Basic error:
"Run-time error:
There was a problem accessing a property or method of the OLE object."
Anybody got a way of achieving my goal??
tom
I have a report which has column headings in a group header. I want to change these column headings based on the value of the group.
Lets assume I have a group named "state" whose values can be "A" or "B". While the group value is "A", I want the column heading to be "Received", else "Delivered".
I put a textbox in the group header with the following as a control source:
=if([state]="A", "Received", "Delivered")
The report fails with the Visual Basic error:
"Run-time error:
There was a problem accessing a property or method of the OLE object."
Anybody got a way of achieving my goal??
tom